Tasks

Delete one task photo

Removes one photo from the task's gallery. The path id is the task id, not the photo. image_id comes from the task's image_ids (aligned with image_urls). To remove the whole gallery, use deleteTaskImages.

delete/tasks/{id}/images/{image_id}

Request

  • Base URL: https://api.purplegrain.com/api/v1
  • URL: https://api.purplegrain.com/api/v1/tasks/{id}/images/{image_id}
  • Auth: HTTP bearer

Path parameters

idstring required

Id of the task, not the photo.

image_idstring required

Id of the gallery attachment to remove (see the task's image_ids)

Query parameters

includestring
Example:producer,provider,service

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.

Response

Success — the task with the remaining gallery. 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 2 revisions of this API.