Skip to main content
POST
Create a Cost-Center

Headers

Authorization
string
required

API key. Value must be formatted like so: lucca application={api_key}.

Body

application/json

Cost-center to create.

Cost-center.

name
string
required
code
string
required
ownerId
integer<int32>
write-only

ID of the user who will be the owner of the cost-center.

owner
Reference to a user · object

Read-only. Owner of the cost-center.

state
enum<string>
default:Disabled

Disabled: the cost-center is disabled. Enabled: the cost-center is enabled.

Available options:
Disabled,
Enabled
establishmentIds
integer<int32>[]
write-only

Write-only. IDs of the establishments to which the cost-center belongs."

Response

201 - application/json

OK

items
cost-center · object[]