List children relationship linkage
curl --request GET \
--url https://api.scholarlysoftware.com/api/v1/departments/{id}/relationships/children \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.scholarlysoftware.com/api/v1/departments/{id}/relationships/children"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.scholarlysoftware.com/api/v1/departments/{id}/relationships/children', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"links": {},
"data": [
{
"type": "department",
"id": "uuid"
}
],
"meta": {}
}{
"errors": [
{
"status": "<string>",
"title": "<string>",
"detail": "<string>"
}
]
}{
"errors": [
{
"status": "<string>",
"title": "<string>",
"detail": "<string>"
}
]
}Departments
List children relationship linkage
Returns JSON:API relationship linkage data for child departments.
GET
/
api
/
v1
/
departments
/
{id}
/
relationships
/
children
List children relationship linkage
curl --request GET \
--url https://api.scholarlysoftware.com/api/v1/departments/{id}/relationships/children \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.scholarlysoftware.com/api/v1/departments/{id}/relationships/children"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.scholarlysoftware.com/api/v1/departments/{id}/relationships/children', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"links": {},
"data": [
{
"type": "department",
"id": "uuid"
}
],
"meta": {}
}{
"errors": [
{
"status": "<string>",
"title": "<string>",
"detail": "<string>"
}
]
}{
"errors": [
{
"status": "<string>",
"title": "<string>",
"detail": "<string>"
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
Bearer token
Path Parameters
⌘I