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

Assign a special role to a product image

Promotes an existing product image to one of the special roles listed under Special Image Types, for the product the image belongs to.

A product holds at most one image per role, so any image that previously held the requested role for that product loses it: the earlier assignment is removed and replaced by this one. Assigning a role does not change the image record itself, and the same image may hold more than one role.

The response echoes the role that was assigned; it does not return the image.

post
/product_image/{id}/make_special/
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 product image.

Body

The special role to assign to a product image. Also returned as the response of the assignment.

special_image_typestring · enumRequired

The role to assign. See Special Image Types.

Example: basePossible values:
Responses
200

The role was assigned to the product image.

application/json

The special role to assign to a product image. Also returned as the response of the assignment.

special_image_typestring · enumRequired

The role to assign. See Special Image Types.

Example: basePossible values:
post/product_image/{id}/make_special/
POST /api/v1/remote/1/product_image/{id}/make_special/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 29

{
  "special_image_type": "base"
}
{
  "special_image_type": "base"
}

Last updated

Was this helpful?