Skip to main content
GET
/
api
/
v1
/
departments
List root departments
curl --request GET \
  --url https://api.scholarlysoftware.com/api/v1/departments \
  --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

Query Parameters

page[size]
integer

Number of items per page (max 100)

page[after]
string

Cursor for next page

page[before]
string

Cursor for previous page

Response

departments found

data
object[]
required