Skip to main content
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

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Authorization
string
required

Bearer token

Path Parameters

id
string
required

Body

application/vnd.api+json
data
object | null

Response

Parent updated