Get Object's Children Links

GET /node/api/objects/:id/children/links

Returns a list of object's children links.
Permissions: objectPermissions.

Request parameters

Path parameters

Parameter
Type
Description
id
String
required
The ID of an object whose children links should be retrieved.

Response description

Field
Type
Description
children_links
Array<Link>
An array of object's children links.

Examples

Request examples

Bash
JavaScript
NodeJS
Python
1
login=<...>
2
password=<...>
3
saymon_hostname=<...>
4
object_id=<...>
5
url=https://$saymon_hostname/node/api/objects/$object_id/children/links
6
7
curl -X GET $url -u $login:$password
Copied!
1
let login = <...>
2
let password = <...>
3
let saymonHostname = <...>
4
let objectId = <...>
5
let path = "/node/api/objects/" + objectId + "/children/links";
6
let auth = "Basic " + btoa(login + ":" + password);
7
8
let headers = new Headers();
9
headers.append("Authorization", auth);
10
11
let requestOptions = {
12
method: "GET",
13
headers: headers
14
};
15
16
fetch(saymonHostname + path, requestOptions)
17
.then(response => response.text())
18
.then(result => console.log(result))
19
.catch(error => console.log("error", error));
Copied!
1
const http = require("http");
2
3
let login = <...>
4
let password = <...>
5
let saymonHostname = <...>
6
let objectId = <...>
7
let path = "/node/api/objects/" + objectId + "/children/links";
8
let auth = "Basic " + Buffer.from(login + ":" + password).toString("base64");
9
10
let options = {
11
"method": "GET",
12
"hostname": saymonHostname,
13
"headers": {
14
"Authorization": auth
15
},
16
"path": path
17
};
18
19
let req = http.request(options, function (res) {
20
let chunks = [];
21
22
res.on("data", function (chunk) {
23
chunks.push(chunk);
24
});
25
26
res.on("end", function (chunk) {
27
let body = Buffer.concat(chunks);
28
console.log(body.toString());
29
});
30
31
res.on("error", function (error) {
32
console.error(error);
33
});
34
});
35
36
req.end();
Copied!
1
import requests
2
3
login = <...>
4
password = <...>
5
saymon_hostname = <...>
6
object_id = <...>
7
url = "https://" + saymon_hostname + "/node/api/objects/" + \
8
object_id + "/children/links"
9
10
response = requests.request("GET", url, auth=(login, password))
11
print(response.text)
Copied!

Response example

1
[
2
{
3
"source": "5e85e026a82a7421a9a3499b",
4
"target": "5e85e0c8a82a7421a9a349a8",
5
"client_data": "{\"headlinePropIds\":[]}",
6
"owner_id": "5e1f04e753e27e5dfa554120",
7
"weight": 1,
8
"tags": [],
9
"last_state_update": 1585914352499,
10
"updated": 1585914352498,
11
"created": 1585914352499,
12
"state_id": 1,
13
"class_id": 35,
14
"_stateConditionRefs": [],
15
"operations": [],
16
"properties": [],
17
"id": "5e8721f0a82a7421a9a35204"
18
},
19
{
20
"source": "5e85e0c8a82a7421a9a349a8",
21
"target": "5e860968a82a7421a9a34a88",
22
"client_data": "{\"headlinePropIds\":[]}",
23
"owner_id": "5e1f04e753e27e5dfa554120",
24
"weight": 1,
25
"tags": [],
26
"last_state_update": 1585914355862,
27
"updated": 1585914355861,
28
"created": 1585914355862,
29
"state_id": 1,
30
"class_id": 35,
31
"_stateConditionRefs": [],
32
"operations": [],
33
"properties": [],
34
"id": "5e8721f3a82a7421a9a3520f"
35
}
36
]
Copied!
Last modified 1yr ago