Associate products with an account

POST {{baseUrl}}/v1/accounts/:account_id/associateProducts

This API associates products with an account. Only a maximum of 10 products can be associated with an account through a single API request.

OAuth Scope

  • Desk.contacts.UPDATE

Attributes

Attribute NameData TypeDescription
ids (required)<list>
IDs of the resources to associate
departmentId<long>
ID of the department containing the products
associate (required)<boolean>
true for associating the resource and false for dissociating the resource

HEADERS

KeyDatatypeRequiredDescription
Authorizationstring

RESPONSES

status: OK

{&quot;results&quot;:[{&quot;success&quot;:true,&quot;id&quot;:&quot;7000000027223&quot;,&quot;errors&quot;:null},{&quot;success&quot;:false,&quot;id&quot;:&quot;7000000043968&quot;,&quot;errors&quot;:{&quot;errorCode&quot;:&quot;UNPROCESSABLE_ENTITY&quot;,&quot;httpCode&quot;:&quot;422&quot;}}]}