Assign connected object as an asynchronous operation. Returns (Task) Assign connected object as an asynchronous operation. Returns (Task)
Associate two Base objects together and specify how they are to interact (their relationship).
| Name | Description |
|---|---|
| target | The target. |
| connectedObject | The connected object. |
| relation | The relation. |
| isOneToOne | if set to true establishes a one-to-one relationship. |
| metaData | Provides space for additional data about the intersection of the two related resources. |
| addAsTag | if set to true adds the connection as a tag. |
| targetHref | The target object’s href. |
| connectionLink | The connection link ( “connections” or “connections2” ) “connections” If meta , the byte[] must be a “connections2” BSON encoded BsonDocument meta If JObject , themust be a |
| connectedObjectKey | The connected object’s key. |
| relation | The relation. |
| isOneToOne | if set to true establishes a one-to-one relationship. |
| meta | Provides space for additional data about the intersection of the two related resources connectionsLink == “connections” If byte[] , pass in a connectionsLink == “connections2” BSON encoded BsonDocument JObject If, pass in a |
| addAsTag | if set to true adds the connection as a tag. |
Example in C#
// Returns: nothing
await client.AssignConnectedObjectAsync(BaseInfo target, BaseInfo connectedObject, String relation, Boolean isOneToOne, Object metaData, Boolean addAsTag);
Example in C#
// Returns: nothing
await client.AssignConnectedObjectAsync(String targetHref, String connectionLink, String connectedObjectKey, String relation, Boolean isOneToOne, Object meta, Boolean addAsTag);
Example in CURL
curl -X PUT \
https://api.us.acresecurity.cloud/api/f/INSTANCE.KEY/people/PERSON.KEY/connections/RELATION?isOneToOne=True&relatedKey=RELATED.KEY;addAsTag=false \
-H 'Authorization: Bearer TOKEN_GOES_HERE' \
-H 'Content-Type: application/json' \
-d 'null'
Example in CURL
curl -X PUT \
https://api.us.acresecurity.cloud/api/f/INSTANCE.KEY/people/PERSON.KEY/connections/RELATION?isOneToOne=True&relatedKey=RELATED.KEY;addAsTag=false \
-H 'Authorization: Bearer TOKEN_GOES_HERE' \
-H 'Content-Type: application/json' \
-d 'null'