{
  "opencollection": "1.0.0",
  "info": {
    "name": "Puzzle Api Accounts Departments API",
    "version": "0"
  },
  "items": [
    {
      "info": {
        "name": "Departments",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get Departments",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://staging.southparkdata.com/rest/v0/company/:id/departments",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "The company ID"
              }
            ]
          },
          "docs": "Retrieves a list of all departments for the given company.\n\nRequires scope: read:company"
        },
        {
          "info": {
            "name": "Create Department",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://staging.southparkdata.com/rest/v0/company/:id/departments",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "The company ID"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create a department for the given company.\n\nDepartments must have a unique name. A 400 error will be thrown if a department with the same name already exists.\n\nRequires scope: write:department"
        }
      ]
    }
  ],
  "bundled": true
}