Update an existing contractor service listing
Changed onChange the service listing identified by id, such as its name, description, active or inactive status, quoted cost and currency, service radius, tags or related place. Send only the requested changes in data; omitted fields stay unchanged. Read the listing first and confirm the changes with the person. The caller must be able to act for the listing's owner, and an MCP connection must allow writes. Returns the updated service. This does not book a contractor, send a message or take payment. Use updateServiceImage for the listing's photo.
Request
- Base URLhttps://api.purplegrain.com/api/v1
- URLhttps://api.purplegrain.com/api/v1/services/{id}
- AuthHTTP bearer
Path parameters
Id of the record
Query parameters
Comma-separated snake_case relationship paths to embed (JSON:API included array, or inlined for application/json). Never embedded by default; a path outside the allowed list is refused with 400 unknown_include (see the 400 response); dot notation selects children; max 10 paths. Allowed paths: owner, category, city, city.location, place, place.location, location.
Request body
Response
Update. When the include query parameter is used, the response may contain an included array (JSON:API) or inlined related resources (application/json).
Example response
{
"data": {
"type": "service"
}
}Changes
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
- warning
removed the optional property
from the response with the status (media type: application/json) - warning
removed the optional property
from the response with the status (media type: application/vnd.api+json) - warning
removed the optional property
//from the response with the status (media type: application/json) - warning
removed the optional property
//from the response with the status (media type: application/vnd.api+json) - warning
removed the optional property
from the response with the status (media type: application/json) - warning
removed the optional property
from the response with the status (media type: application/vnd.api+json) - info
added the optional property
//to the response with the status (media type: application/json) - info
added the optional property
//to the response with the status (media type: application/vnd.api+json) - info
added the optional property
///to the response with the status (media type: application/json) - info
added the optional property
///to the response with the status (media type: application/vnd.api+json) - info
added the optional property
///to the response with the status (media type: application/json) - info
added the optional property
///to the response with the status (media type: application/vnd.api+json)
- warning