Skip to main content
https://.thoughtindustries.com

Bulk Content Assignment

Assigns content to multiple users in a single request

Assigns content to multiple users in a single request.

POSThttps://example.thoughtindustries.com/incoming/v2/users/bulkContentAssignment

Example 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

NameTypeRequiredLocationDescription
usersBulkContentAssignmentUser[]YesbodyArray 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

FieldTypeDescription
updatedRecordCountintegerNumber of user-content assignment records successfully updated.
errorsBulkAssignmentUserError[]Array of error objects for any assignments that failed to process.
errors.iduuidUnique identifier of the user record that encountered an error.
errors.identifierstringExternal identifier of the user associated with the failed assignment.
errors.errorstringHuman-readable message describing why the assignment failed.
errors.recordstringRaw record data associated with the failed assignment, provided for debugging.