POST products/images/remove

Available from CRM.COM R14.0.0

This method is used to remove an image from a product. A single image can be removed through each call

If the default image is removed and the product still has other images, another one will be set as the default at random

Resource URL

Parameters

Name

Type

Description

token

String

The token retrieved from the login method

product_identifier

(mandatory)

Identifier  

The identifier of the product. The allowed product identifier fields are the following:

Name

Type

Description

id

(semi-optional)

String

The ID of the product

code

(semi-optional)

String

The code of the product

alternative_code

(semi-optional)

String

The alternative code of  the product

id

(mandatory)

StringThe ID of the product image that should be removed

Restrictions

  • It is mandatory to specify one of the semi-optional parameters. Only one of those parameters is allowed to be specified.

Response Data

Not applicable

Examples

 Example 1

HTTP Method: POST

 

Request

Body

{
	"token":"{{token}}",
	"product_identifier":{
		"code": "UPA16"
	},
	"id": "product_image3"
} 

Response

Not applicable