Delete Work Order Comment
DELETE/organizations/:organizationId/work-orders/:workOrderId/comments/:commentId
Soft delete a comment on a work order. Users can only delete their own comments.
Request
Path Parameters
organizationId stringrequired
Organization ID
workOrderId stringrequired
Work Order ID
commentId stringrequired
Comment (Activity) ID
Responses
- 200
- 401
- 403
- 404
- application/json
- Schema
- Example (from schema)
- Example
Schema
success booleanrequired
True if deletion was successful
message stringrequired
Success message
{
"success": true,
"message": "string"
}
{}
The request has not permission.
- application/json
- Schema
- Example (from schema)
- Example
Schema
error stringrequired
The request has not permission.
message stringrequired
The request has not permission message.
{
"error": "string",
"message": "string"
}
{
"error": "Unauthenticated",
"message": "Authentication is required and has failed or has not yet been provided."
}
The request has not permission.
- application/json
- Schema
- Example (from schema)
- Example
Schema
error stringrequired
The request has not permission.
message stringrequired
The request has not permission message.
{
"error": "string",
"message": "string"
}
{
"error": "Forbidden",
"message": "Access to the requested resource is forbidden."
}
The resource hasn't found.
- application/json
- Schema
- Example (from schema)
- Example
Schema
error stringrequired
The resource hasn't found.
message stringrequired
The resource hasn't found message.
{
"error": "string",
"message": "string"
}
{
"error": "ResourceNotFound",
"message": "The requested resource could not be found."
}
Loading...