PeopleForce
Departments

Deprecated

Company API v1 is deprecated and will be removed in a future release. Migrate to a newer version — v4 is the latest. Use the version switcher in the header.

Create a department

POST
/api/public/v1/departments

Request Body

application/x-www-form-urlencoded

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://example.com/api/public/v1/departments" \  -H "Content-Type: application/x-www-form-urlencoded" \  -d 'name=string'
{  "data": {    "id": 0,    "name": "string",    "parent_id": null,    "manager_id": null,    "department_level": null,    "fields": {},    "created_at": "string",    "updated_at": "string",    "ancestors": [      null    ]  }}