Field Name | Unique? | Validation |
---|---|---|
name | ^[a-zA-Z0-9_. ]+$ | |
code | ✔ | ^[a-zA-Z0-9_-]+$ |
Resource | 1-to-1 | 1-to-many | many-to-1 | many-to-many |
---|---|---|---|---|
user | ✔ | |||
company | ✔ | |||
vehicle | ✔ |
Returns a list of cost-centres for the current company. A list of managers is also included.
Returns a single cost-centre along with some reporting data.
Creates a new cost-centre for the current company.
Updates an existing cost-centre.
Deletes a cost-centre.
Returns bookings for the cost-centre.
Gets the list of managers for the cost-centre.
Replaces the list of managers for the cost-centre with a list passed in via the request body.
Operation: POST /cost-centre/90/managers
Intent: replace the current list of managers for cost-centre 90
Request body:
{
"managers": [1, 4, 13, 14]
}
Status: 201 Created