{
  "opencollection": "1.0.0",
  "info": {
    "name": "7shifts Availability Departments API",
    "version": "2.0"
  },
  "items": [
    {
      "info": {
        "name": "Departments",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List Departments",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.7shifts.com/v2/company/:company_id/departments",
            "params": [
              {
                "name": "company_id",
                "value": "",
                "type": "path",
                "description": "Company identifier."
              },
              {
                "name": "location_id",
                "value": "",
                "type": "query",
                "description": "Filter departments by location."
              },
              {
                "name": "cursor",
                "value": "",
                "type": "query",
                "description": "Pagination cursor for the next or previous page."
              },
              {
                "name": "limit",
                "value": "",
                "type": "query",
                "description": "Results per page (1-500, default 100; 20 for some collections)."
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "List Departments"
        },
        {
          "info": {
            "name": "Create Department",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.7shifts.com/v2/company/:company_id/departments",
            "params": [
              {
                "name": "company_id",
                "value": "",
                "type": "path",
                "description": "Company identifier."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Create Department"
        }
      ]
    }
  ],
  "bundled": true
}