Logo
Brex Developer API Documentation

Create department

POST {{baseUrl}}/v2/departments

This endpoint creates a new department

 

Body PARAM

Key Datatype Required Description 



HEADERS

Key Datatype Required Description 
Idempotency-Key
string
Content-Type
string




RESPONSES

status OK

{ "id": "in dolore laboris proident", "name": "et aliquip exercitation dolore", "description": "dolor occaecat id eiusmod" }



Curl
curl -X POST 'https://platform.staging.brexapps.com/v2/departments' -H 'Idempotency-Key: $guid' -H 'Content-Type: application/json' -d '{"name":"nulla","description":"labore non"}'

ENDPOINTS