Add

Add a new department

Add

POST https://{{account_id}}.acquire.io/api/v1/account/department

Add a new department. The following keys must be passed in to the body of the request: department_list - Array of objects. name - The department's name. Must be unique. status - The department's status. Choose "active" to publish the department, choose "disabled" to set the department to draft.

Headers

Name
Type
Description

Authorization

string

Bearer {{API_KEY}}

Request Body

Name
Type
Description

status

string

Department status: "active" | "disabled"

name

string

The department's name. Must be unique.

department_list

array

Array of objects. The department list.

{
  "data": [
    {
      "name": "department",
      "status": "active",
      "id": 14
    }
  ]
}

Body(raw)

{
  "department_list": [
    {
      "name": "department",
      "status": "active"
    }
  ]
}

Last updated