Departments

Create department

This endpoint creates a new department

post/v2/departments

Request

  • Base URL
    https://api.brex.com
  • Auth
    OAuth 2
    Authorization codehttps://accounts-api.brex.com/oauth2/default/v1/authorize
    Token URLhttps://accounts-api.brex.com/oauth2/default/v1/token
    Scopesdepartments
  • TypeScript
    A function with typed inputs. Its response is checked against the schema.

Headers

Idempotency-Keystring nullable

Request body

namestring required

Name of the department

descriptionstring nullable

Description of the department

Response

createDepartment 200 response

idstring required
namestring required

Name of the department

descriptionstring nullable

Description of the department

Changes

No recorded changes to this operation across all 4 revisions of this API.