Skip to main content
PUT
Update Cost-Center

Headers

Authorization
string
required

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

Path Parameters

id
integer<int32>
required

ID of the cost-center.

Body

application/json

Cost-center to update.

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

200 - application/json

OK

Cost-center.

name
string
required
code
string
required
id
integer<int32>
read-only
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
establishments
Reference to an establishment · object[]
read-only

Read-only. Establishments to which the cost-center belongs.