For the complete documentation index, see llms.txt. This page is also available as Markdown.

Partially update a cancellation request image

Updates one or more fields of an existing cancellation request image. Only the fields you send are changed.

The same rules as the full update apply: image is validated but discarded, image_path replaces the referenced file, and is_uploaded_by_user is stored as false. See Update Semantics and Uploader Flag. The MAX_IMAGE_DIMENSIONS dynamic setting applies whenever image is sent.

patch
/cancellation_request_images/{id}/
Authorizations
AuthorizationstringRequired

Token credential sent in the Authorization header, in the form: Token <your-token>. Requires a staff (admin) account.

Path parameters
idintegerRequired

The unique identifier of the cancellation request image.

Body

The fields to change on an existing cancellation request image. Every field is optional; only the fields you send are applied. See Update Semantics.

cancellation_requeststring · uuidOptional

The uuid of the cancellation request to move the image to.

Example: 74fc3776-1cd2-4564-b33b-22ac8ff8c4e5
imagestringOptional

Validated like on create, then discarded. The stored file content cannot be replaced; use image_path instead.

image_pathstringOptional

Path of a file already present in the platform's media storage, to be referenced by this record instead of its current file. Accepted in requests only; never returned in a response.

Example: cancellation_request_images/2026/09/30/93506902-da14-485b-90b1-6e0c0df6b70b.jpg
descriptionstring · nullableOptional

Free-text description of the image.

Example: Scratch on the left side of the product.
attributesobject · nullableOptional

Free-form JSON object. Replaced as a whole, not merged.

Example: {"angle":"back"}
Responses
200

The updated cancellation request image.

application/json

An image attached to a cancellation request.

idintegerRequired

Unique identifier of the cancellation request image.

Example: 42
cancellation_requeststring · uuidRequired

The uuid of the cancellation request the image belongs to.

Example: 74fc3776-1cd2-4564-b33b-22ac8ff8c4e5
imagestring · nullableRequired

Absolute URL of the stored image file.

Example: https://cdn.example.com/media/cancellation_request_images/2026/09/30/93506902-da14-485b-90b1-6e0c0df6b70b.jpg
descriptionstring · nullableRequired

Free-text description of the image.

Example: Scratch on the left side of the product.
attributesobject · nullableRequired

Free-form JSON object.

Example: {"angle":"front"}
is_uploaded_by_userbooleanRequired

true when the customer attached the image through the storefront cancellation flow; false when it was created or last updated through these endpoints. See Uploader Flag.

Example: false
created_datestring · date-timeRequired

When the record was created.

Example: 2026-09-30T11:30:31.855997Z
modified_datestring · date-timeRequired

When the record was last changed.

Example: 2026-09-30T11:30:31.856171Z
patch/cancellation_request_images/{id}/
PATCH /api/v1/remote/1/cancellation_request_images/{id}/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 260

{
  "cancellation_request": "74fc3776-1cd2-4564-b33b-22ac8ff8c4e5",
  "image": "text",
  "image_path": "cancellation_request_images/2026/09/30/93506902-da14-485b-90b1-6e0c0df6b70b.jpg",
  "description": "Scratch on the left side of the product.",
  "attributes": {
    "angle": "back"
  }
}
{
  "id": 42,
  "cancellation_request": "74fc3776-1cd2-4564-b33b-22ac8ff8c4e5",
  "image": "https://cdn.example.com/media/cancellation_request_images/2026/09/30/93506902-da14-485b-90b1-6e0c0df6b70b.jpg",
  "description": "Scratch on the left side of the product.",
  "attributes": {
    "angle": "front"
  },
  "is_uploaded_by_user": false,
  "created_date": "2026-09-30T11:30:31.855997Z",
  "modified_date": "2026-09-30T11:30:31.856171Z"
}

Last updated

Was this helpful?