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.
Token credential sent in the Authorization header, in the form: Token <your-token>. Requires a staff (admin) account.
The unique identifier of the product image.
The special role to assign to a product image. Also returned as the response of the assignment.
The role to assign. See Special Image Types.
basePossible values: The role was assigned to the product image.
The special role to assign to a product image. Also returned as the response of the assignment.
The role to assign. See Special Image Types.
basePossible values: The request contains invalid or missing data.
Authentication credentials were not provided or are invalid.
The authenticated user does not have administrator privileges.
The requested product image does not exist.
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?

