Locations

Create location

This endpoint creates a new location.

post/v2/locations

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
    Scopeslocations
  • TypeScript
    A function with typed inputs. Its response is checked against the schema.

Headers

Idempotency-Keystring nullable

Request body

namestring required

Name of the location

descriptionstring nullable

Description of the location

Response

createLocation 200 response

idstring required
namestring required

Name of the location

descriptionstring nullable

Description of the location

Changes

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