Skip to main content
GET
/
api
/
v1
/
departments
/
{id}
/
parent
Get parent of a specific department
curl --request GET \
  --url https://api.scholarlysoftware.com/api/v1/departments/{id}/parent \
  --header 'Authorization: Bearer <token>'
{
  "data": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "type": "department",
    "attributes": {
      "name": "Computer Science",
      "created_at": "<string>",
      "updated_at": "<string>",
      "is_root": true
    },
    "relationships": {
      "parent": {
        "links": {
          "related": "<string>"
        },
        "meta": {}
      },
      "children": {
        "links": {
          "related": "<string>"
        },
        "meta": {}
      }
    }
  }
}

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

Department UUID

Response

no parent found (root department)

data
object
required