Skip to main content
POST
Create org unit

Authorizations

Authorization
string
header
required

Use header Authorization: Token <api_token>. API tokens are obtained from the Piriod dashboard.

Headers

x-simple-workspace
string
required

Workspace (account) identifier. Required for every request.

x-piriod-test-mode
boolean
default:false

Whether to operate against test-mode data. Defaults to false.

Body

application/json
customer
string
required
name
string
required
Maximum string length: 64

Response

Org unit created.

customer
string
required

Customer ID this org unit belongs to.

name
string
required
Maximum string length: 64
id
integer
read-only
created
string<date-time>
read-only
updated
string<date-time>
read-only