POST /tasks/{job_id}/notes
Use this method to create a note and change the state of a specific job (task).
Authentication
Authentication with username and password is required.
Request URL
POST https://{management_server_IP}/tasks/{job_id}/notes
where {job_id} is the job ID To obtain the job IDs, use GET /tasks method.
Query parameters
None
Request body
Attributes | Required / Optional | Type | Description | ||
---|---|---|---|---|---|
newState | Required if text is not specified; otherwise, optional. | Strings | Job state. This can be one of the following values:
| ||
text | Required if newState is not specified; otherwise, optional. | Strings | Note text |
The following example creates a note.
{
"newState": "Working",
"text": "Investigating the problem."
}
Response codes
Code | Description | Comments |
---|---|---|
200 | OK | The request completed successfully. |
400 | Bad Request | A query parameter or request attribute is missing or not valid, or the operation is not supported. A descriptive error message is returned in the response body. |
500 | Internal Server Error | An internal error occurred. A descriptive error message is returned in the response body. |
Response body
None
Give documentation feedback