Departments
Delete department
Changed onThis endpoint deletes a department by ID. A department cannot be deleted while users are still assigned to it or while it is used as a filter on an active group.
delete/v2/departments/{id}
Request
- Base URLhttps://api.brex.com
- AuthOAuth 2Authorization codehttps://accounts-api.brex.com/oauth2/default/v1/authorizeToken URLhttps://accounts-api.brex.com/oauth2/default/v1/tokenScopesdepartments
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
idstring required
Response
deleteDepartment 200 response
Changes
- info
endpoint added
- info