Relations
Read
Read entity relations | ||
type | object | |
properties | ||
| The unique identifier. | |
type | string (UUID) | |
Response
type | object | |||
properties | ||||
| Entity parents | |||
type | array | |||
items | type | object | ||
properties | ||||
| Unique ID | |||
type | string (UUID) | |||
| Enabled | |||
type | boolean | |||
| Name | |||
type | string | |||
| External key | |||
type | string | |||
| Entity children | |||
type | array | |||
items | type | object | ||
properties | ||||
| Unique ID | |||
type | string (UUID) | |||
| Enabled | |||
type | boolean | |||
| Name | |||
type | string | |||
| External key | |||
type | string | |||
Example request
GET https://interay.io/api/v1/entities/relations/get?entity=00000000-0000-0000-0000-000000000000
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...
Example response
200 OK
Content-Type: application/json
{
"parents": [
{
"displayName": "Docs (docs)",
"key": "docs",
"uid": "00000000-0000-0000-0000-000000000000",
"enabled": true,
"link": "https://interay.io/admin/devices/00000000-0000-0000-0000-000000000000",
"name": "Docs"
}
],
"children": []
}
Insert
Insert entity relation into the entity tree | ||
type | object | |
properties | ||
| The unique identifier. | |
type | string (UUID) | |
| The destination parent unique identifier. | |
type | string (UUID) | |
Example request
POST https://interay.io/api/v1/entities/relations/insert
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...
Content-Type: application/json
{
"entity": "00000000-0000-0000-0000-000000000000",
"parentEntity": "99999999-9999-9999-9999-999999999999"
}
Example response
200 OK
Delete
Delete entity relation from the entity tree | ||
type | object | |
properties | ||
| The unique identifier. | |
type | string (UUID) | |
| The source parent unique identifier. | |
type | string (UUID) | |
Example request
POST https://interay.io/api/v1/entities/relations/delete
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...
Content-Type: application/json
{
"entity": "00000000-0000-0000-0000-000000000000",
"parentEntity": "99999999-9999-9999-9999-999999999999"
}
Example response
200 OK
Update
Move entity relation in the entity tree | ||
type | object | |
properties | ||
| The unique identifier. | |
type | string (UUID) | |
| The source parent unique identifier. | |
type | string (UUID) | |
| The destination parent unique identifier. | |
type | string (UUID) | |
Example request
POST https://interay.io/api/v1/entities/relations/update
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...
Content-Type: application/json
{
"entity": "00000000-0000-0000-0000-000000000000",
"fromParentEntity": "88888888-8888-8888-8888-888888888888",
"toParentEntity": "99999999-9999-9999-9999-999999999999"
}
Example response
200 OK