Update parent relationship
curl --request PATCH \
--url https://api.scholarlysoftware.com/api/v1/folders/{id}/relationships/parent \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/vnd.api+json' \
--data '{}'import requests
url = "https://api.scholarlysoftware.com/api/v1/folders/{id}/relationships/parent"
payload = {}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/vnd.api+json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/vnd.api+json'},
body: JSON.stringify({})
};
fetch('https://api.scholarlysoftware.com/api/v1/folders/{id}/relationships/parent', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"errors": [
{
"status": "<string>",
"title": "<string>",
"detail": "<string>"
}
]
}{
"errors": [
{
"status": "<string>",
"title": "<string>",
"detail": "<string>"
}
]
}{
"errors": [
{
"status": "<string>",
"title": "<string>",
"detail": "<string>"
}
]
}{
"errors": [
{
"status": "422",
"title": "Validation Error",
"detail": "Label can't be blank"
}
]
}Folders
Update parent relationship
Updates the parent relationship of a folder (JSON:API relationship endpoint). Use this to move folders.
PATCH
/
api
/
v1
/
folders
/
{id}
/
relationships
/
parent
Update parent relationship
curl --request PATCH \
--url https://api.scholarlysoftware.com/api/v1/folders/{id}/relationships/parent \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/vnd.api+json' \
--data '{}'import requests
url = "https://api.scholarlysoftware.com/api/v1/folders/{id}/relationships/parent"
payload = {}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/vnd.api+json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/vnd.api+json'},
body: JSON.stringify({})
};
fetch('https://api.scholarlysoftware.com/api/v1/folders/{id}/relationships/parent', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"errors": [
{
"status": "<string>",
"title": "<string>",
"detail": "<string>"
}
]
}{
"errors": [
{
"status": "<string>",
"title": "<string>",
"detail": "<string>"
}
]
}{
"errors": [
{
"status": "<string>",
"title": "<string>",
"detail": "<string>"
}
]
}{
"errors": [
{
"status": "422",
"title": "Validation Error",
"detail": "Label can't be blank"
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
Bearer token
Path Parameters
Body
application/vnd.api+json
Show child attributes
Show child attributes
Response
Parent updated
⌘I