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 Name | Data Type | Description |
---|---|---|
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
Key | Datatype | Required | Description |
---|---|---|---|
Authorization | string |
RESPONSES
status: OK
{"results":[{"success":true,"id":"7000000027223","errors":null},{"success":false,"id":"7000000043968","errors":{"errorCode":"UNPROCESSABLE_ENTITY","httpCode":"422"}}]}