Bulk Content Assignment
Assigns content to multiple users in a single request
Assigns content to multiple users in a single request.
POST
https://example.thoughtindustries.com/incoming/v2/users/bulkContentAssignmentExample request
curl -X POST "https://example.thoughtindustries.com/incoming/v2/users/bulkContentAssignment" \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"users": []
}'Parameters
| Name | Type | Required | Location | Description |
|---|---|---|---|---|
users | BulkContentAssignmentUser[] | Yes | body | Array of user-content assignment objects specifying which content to assign to each user. |
Example response
{
"data": {
"APIBulkContentAssignment": {
"updatedRecordCount": 0,
"errors": [
{
"id": "00000000-0000-0000-0000-000000000000",
"identifier": "string",
"error": "string",
"record": "string"
}
]
}
}
}Response fields
| Field | Type | Description |
|---|---|---|
updatedRecordCount | integer | Number of user-content assignment records successfully updated. |
errors | BulkAssignmentUserError[] | Array of error objects for any assignments that failed to process. |
errors.id | uuid | Unique identifier of the user record that encountered an error. |
errors.identifier | string | External identifier of the user associated with the failed assignment. |
errors.error | string | Human-readable message describing why the assignment failed. |
errors.record | string | Raw record data associated with the failed assignment, provided for debugging. |