Replace a task's photos with one image
Replace the task's existing photos with a single image. This legacy endpoint removes the current gallery before attaching the replacement; it does not append. Requires edit rights on the task and confirmation before replacing photos.
Provide image_url for a publicly reachable HTTP(S) image, or image_base64 only for a tiny generated image (under about 100 KB decoded). For a local photo, stage it with createImageUpload, then use updateTask with image_upload_ids and image_mode: replace. Use addTaskImages to keep existing photos and append instead. Returns the updated task.
Request
- Base URL: https://api.purplegrain.com/api/v1
- URL: https://api.purplegrain.com/api/v1/tasks/{id}/update-image
- Auth: HTTP 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; unknown paths ignored; dot notation selects children; max 10 paths. Allowed paths: producer, provider, category, place, place.location, service, service.owner, service.category, service.city, service.place, service.location, farm, parent, children, asset.
Request body
Response
Success. 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": "task"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.