API

Include or remove an item from the TOP-10 selection

POST/api/crm/v2/items.toggle_popularv2
operationId: items.togglePopular

Authorization

api-token + language + role

Query parameters

branch_idintegerrequired

Example: 5

Request body application/json

object
idintegerrequired

Example: 1

activebooleanrequired

Example: true

Responses

OK

object (Response)
statusstringrequired

Values:successerror

Example: success

One of the options
object

Error details

errorobjectrequired
codeintegerrequired

Error code

variablesobject
descriptionstringrequired

Error description