cost-center

Get Many Cost Centers

Get Many Cost Centers

Securitybearer
Request
query Parameters
select
Array of strings

Select Cost Center fields, comma-separated. (e.g. select=id,firstName,lastName,workEmail)

Items Enum: "id" "companyId" "code" "name"
object

Filters conditions per field. (e.g. filters[id][$eq]=507f1f77bcf86cd799439011)

limit
integer

Limit amount of received Cost Centers. (e.g. limit=20)

offset
integer

Offset amount of received Cost Centers. (e.g. offset=20)

object

Sort received Cost Centers by field. (e.g. sort[id]=asc)

Responses
200
400

Bad Request

401

Unauthorized

403

Forbidden

500

Internal server error

get/cost-center
Response samples
application/json
{
  • "status": "ok",
  • "data": [
    ],
  • "total": 500,
  • "count": 50,
  • "offset": 50,
  • "relations": { }
}

Create One Cost Center

Create One Cost Center

Securitybearer
Request
Request Body schema: application/json
required
code
required
string
name
string
Responses
201
400

Bad Request

401

Unauthorized

403

Forbidden

500

Internal server error

post/cost-center
Request samples
application/json
{
  • "code": "string",
  • "name": "string"
}
Response samples
application/json
{
  • "status": "ok",
  • "data": {
    }
}

Get One Cost Center

Get One Cost Center

Securitybearer
Request
path Parameters
id
required
string

Resource Id

Example: 507f1f77bcf86cd799439011
query Parameters
select
Array of strings

Select Cost Center fields, comma-separated. (e.g. select=id,firstName,lastName,workEmail)

Items Enum: "id" "companyId" "code" "name"
Responses
200
400

Bad Request

401

Unauthorized

403

Forbidden

404

Not Found

500

Internal server error

get/cost-center/{id}
Response samples
application/json
{
  • "status": "ok",
  • "data": {
    },
  • "relations": { }
}

Update One Cost Center

Update One Cost Center

Securitybearer
Request
path Parameters
id
required
string

Resource Id

Example: 507f1f77bcf86cd799439011
Request Body schema: application/json
required
code
string
name
string
Responses
200
400

Bad Request

401

Unauthorized

403

Forbidden

404

Not Found

500

Internal server error

patch/cost-center/{id}
Request samples
application/json
{
  • "code": "string",
  • "name": "string"
}
Response samples
application/json
{
  • "status": "ok",
  • "data": {
    }
}

Replace One Cost Center

Replace One Cost Center

Securitybearer
Request
path Parameters
id
required
string

Resource Id

Example: 507f1f77bcf86cd799439011
Request Body schema: application/json
required
code
string
name
string
Responses
200
400

Bad Request

401

Unauthorized

403

Forbidden

404

Not Found

500

Internal server error

put/cost-center/{id}
Request samples
application/json
{
  • "code": "string",
  • "name": "string"
}
Response samples
application/json
{
  • "status": "ok",
  • "data": {
    }
}

Delete One Cost Center

Delete One Cost Center

Securitybearer
Request
path Parameters
id
required
string

Resource Id

Example: 507f1f77bcf86cd799439011
Responses
204
400

Bad Request

401

Unauthorized

403

Forbidden

404

Not Found

500

Internal server error

delete/cost-center/{id}
Response samples
application/json
{
  • "status": "ok",
  • "data": { }
}