Skip to main content

Update Assignment

PATCH 

/v1/assignments/:id

Change an assignment's channel scope or Owner/Collaborator role. Omitting saleChannelId moves the assignment to whole-brand scope; duplicate and owner conflicts are checked.

Requires assignments.write.

Request and response fields at a glance
  • Path parameters: id (integer, required).
  • Request body (application/json): saleChannelId (integer), role (string).
  • 200 response (application/json): id (number, required), userId (number, required), brandId (number, required), saleChannelId (mixed), role (string, required), assignedBy (number), assignedAt (string, required), createdAt (string, required), updatedAt (string, required), user (object), brand (object), saleChannel (mixed).

Request​