{
  "opencollection": "1.0.0",
  "info": {
    "name": "Willo Integration API V2 Child Organisations Departments API",
    "version": "2.0"
  },
  "request": {
    "auth": {
      "type": "apikey",
      "key": "Authorization",
      "value": "{{Authorization}}",
      "placement": "header"
    }
  },
  "items": [
    {
      "info": {
        "name": "Departments",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List Departments",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.willotalent.com/api/integrations/v2/departments/"
          },
          "docs": "Lists the departments (Companies) in the account the API key can access."
        },
        {
          "info": {
            "name": "Create Department",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.willotalent.com/api/integrations/v2/departments/",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Creates a new department (Company), optionally with its own branding."
        },
        {
          "info": {
            "name": "Department Details",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.willotalent.com/api/integrations/v2/departments/:key/",
            "params": [
              {
                "name": "key",
                "value": "",
                "type": "path",
                "description": "The unique key of the resource."
              }
            ]
          },
          "docs": "Retrieves a single department by its key."
        },
        {
          "info": {
            "name": "Update Department (PUT)",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.willotalent.com/api/integrations/v2/departments/:key/",
            "params": [
              {
                "name": "key",
                "value": "",
                "type": "path",
                "description": "The unique key of the resource."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Fully replaces a department."
        },
        {
          "info": {
            "name": "Update Department (PATCH)",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://api.willotalent.com/api/integrations/v2/departments/:key/",
            "params": [
              {
                "name": "key",
                "value": "",
                "type": "path",
                "description": "The unique key of the resource."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Partially updates a department."
        },
        {
          "info": {
            "name": "Delete Department",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.willotalent.com/api/integrations/v2/departments/:key/",
            "params": [
              {
                "name": "key",
                "value": "",
                "type": "path",
                "description": "The unique key of the resource."
              }
            ]
          },
          "docs": "Deletes a department."
        }
      ]
    }
  ],
  "bundled": true
}