9002: Connect multiple entities

Connect an array of entities to content.

Endpoint ID:

9002

Method:

URL:

/content/tagged/connect/{content-id}


content-idNumeric value that identifies content. This identifier is returned from endpoint 9001: Create content

Request body:

JSON data containing an array of entities - either entityIDs or extKeys & extType

Required fields:

entityIDs

An array of Rubiq entity IDs that uniquely identify entities

or

extKeys

An array of external keys that uniquely identify entities


extTypeType of external keys
Example 1
{
   "entityIDs": [ 123, 234, 456, 567, 789 ]
}
Example 2
{
   "extKeys": [ "someone@somewhere.com", "someone_else@somewhere.com" ],
   "extType": 1005
}

Response body:

A JSON object containing a count of the number of entities connected to the content. If this does not match the number of entities in the request array, it means some of the entities do not exist in the database.

Example
{
   "count": 5
}

Status codes:

201

Created


404.4Content not found