9002: Connect entity

Connect an entity to content. Once content has been connected to at least one entity, it is considered "private", and can only be accessed by entities that have been connected to it.

Use this endpoint to connect entities one-at-a-time, or use 9002: Connect multiple entities to connect multiple entities.

Endpoint ID:

9002

Method:

URL:

/content/tagged/entity/id/{entity-id}/connect/{content-id}
/content/tagged/entity/ext-key/{ext-key}/{ext-type}/connect/{content-id}


entity-idRubiq entity ID that uniquely identifies an entity

ext-keyExternal key that uniquely identifies an entity

ext-typeType of external key

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

Request body:

None.

Response body:

Example
{
   "entityID": 12345,
   "contentID": 4567
}

Status codes:

201

Created


404.1Entity not found

404.2External entity not found

404.4Content not found