Acknowledge a failed job

Request Information
URL PATCH {{basepath}}/hosting/:hosting_id/job/:jobId/ack
CategoryHosting

Description

Allows you to update the hosting object.

the request body should contain a HostingUpdateRequest object.

Returns a HostingGetResponse object.

Url variables
:hosting_id{{hosting_id}}The hosting you want to update
:jobId12The id of the failed job to allow updates again
JSON
{
    "reason": "The reason you are acknowledging it"
}

Example responses

Acknowledge a failed job
Request Method & URL
PATCH {{basepath}}/hosting/:hosting_id/job/:jobId/ack
Request Body:
{
    "reason": "The reason you are acknowledging it"
}
Url variables
:hosting_id{{hosting_id}}The hosting you want to update
:jobId13The id of the failed job to allow updates again
Response Code:
200 OK
Response Body:
{
    "responseId": "1_725bcd6079eb7c869cf36df8a56996ef5d7dae52",
    "status": "ok",
    "message": "The failed job has been acknowledged"
}
Acknowledge a failed job that does not exist
Request Method & URL
PATCH {{basepath}}/hosting/:hosting_id/job/:jobId/ack
Request Body:
{
    "reason": "The reason you are acknowledging it"
}
Url variables
:hosting_id{{hosting_id}}The hosting you want to update
:jobId14The id of the failed job to allow updates again
Response Code:
404 Not Found
Response Body:
{
    "responseId": "1_9bd4a1eb5e01dee84f13a0c68031cd6d79bfebe2",
    "status": "error",
    "errorCode": "does_not_exist",
    "errorMessage": "No such job"
}
Trying to acknowledge a not failed job
Request Method & URL
PATCH {{basepath}}/hosting/:hosting_id/job/:jobId/ack
Request Body:
{
    "reason": "The reason you are acknowledging it"
}
Url variables
:hosting_id{{hosting_id}}The hosting you want to update
:jobId12The id of the failed job to allow updates again
Response Code:
409 Conflict
Response Body:
{
    "responseId": "1_926f1f002ac97ebe3389081d4e1bb99a473a0372",
    "status": "error",
    "errorCode": "conflict",
    "errorMessage": "Job is not failed"
}