/jobnote/delete
The action deletes a job note from a work order.
Request
| Field | Description | Type | Required |
|---|---|---|---|
report_id | Unique identifier for the work order | number | Yes |
note_id | Unique identifier for the job note | number | Yes |
Use the /jobnote/list action to get the
note_id for a job note.
Example:
{
"report_id": 40945,
"note_id": 240
}
curl -H 'Content-Type: application/json' \
-H 'Authorization: Bearer ACCESS_TOKEN' \
-d '{"report_id":40945,"note_id":240}' \
https://ppw.web/svc/jobnote/delete
Response
| Field | Description | Type |
|---|---|---|
message | Job note delete message | string |
Example successful response:
{
"message": "Job note deleted"
}
Errors
| Error Type | Description | Status Code |
|---|---|---|
report_id_required | Valid report_id is required | 400 |
invalid_note_id | Unique job note identifier is invalid | 400 |
note_not_found | Job note not found | 404 |
note_base_revision_not_found | Job not base revision not found | 404 |
note_delete_error | Error deleting job note | 400 |