cURL
curl --request PATCH \ --url https://api.scholarlysoftware.com/api/v1/departments/{id}/relationships/parent \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/vnd.api+json' \ --data ' { "data": { "type": "department", "id": "<string>" } } '
{ "errors": [ { "status": "<string>", "title": "<string>", "detail": "<string>" } ] }
Updates the parent relationship of a department (JSON:API relationship endpoint)
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Bearer token
Department UUID
Show child attributes
department
Parent department UUID
parent relationship removed (made root)