Users
Invite user
Changed onThis endpoint invites a new user as an employee. To update user's role, check out this article.
post/v2/users
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/tokenScopesusers
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Headers
Idempotency-Keystring nullable
Request body
Response
createUser 200 response
Example response
{
"custom_fields": [
{
"value": {
"data": {
"amount": 700,
"currency": "USD"
}
}
}
]
}Changes
- info
added the new optional request property
- info
added the new optional request property
- info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
removed the
CLOSEDenum value from the////response property for the response status - info
removed the
DELETEDenum value from the////response property for the response status
- info