Cost Centers

Attributes

  • id uuid

    the unique ID of the cost center.

  • name string

    The name of the cost center.

Endpoints

List Cost Centers

get /api/cost_centers

Get the cost renters from the PPG database and return a JSON response.

Arguments

  • limit integer

  • offset integer

    Will return cost centers, but only those after the integer amount.

  • countOnly boolean

    When true, will only return a count of the amount of items in the query.

  • name string

    The name of the cost center.

Request with curl
curl "http://[Your IP] /api/cost_centers" \ -X get \-H "Content-Type: application/json" \-H "Authorization: Bearer [Your JWT Access Token]"
Example Response
{"cost centers": [{ "id": " uuid ", "name": " string ", }]}]}

Show Cost Center

get /api/cost_centers/[id]

Get a single cost center from the PPG database and return a JSON response.

Request with curl
curl "http://[Your IP] /api/cost_centers/[id]" \ -X get \-H "Content-Type: application/json" \-H "Authorization: Bearer [Your JWT Access Token]"
Example Response
{"cost center": { "id": uuid , "name": " string " , } }