PATCH
/
coa
/
api
/
cost-allocations
/
{id}
Partial Update Cost Allocation
curl --request PATCH \
  --url https://api.meetcampfire.com/coa/api/cost-allocations/{id} \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "lines": [
    {
      "allocation": 123,
      "percentage": 0,
      "account": 123,
      "department": 123
    }
  ],
  "name": "<string>",
  "number": "<string>",
  "account": 123
}'
{
  "id": 123,
  "lines": [
    {
      "id": 123,
      "account_name": "<string>",
      "department_name": "<string>",
      "tags": [
        {
          "id": 123,
          "group_name": "<string>",
          "parent_name": "<string>",
          "parent": 123,
          "name": "<string>",
          "created_at": "2023-11-07T05:31:56Z",
          "last_modified_at": "2023-11-07T05:31:56Z",
          "customer": 123,
          "group": 123
        }
      ],
      "percentage": 0,
      "created_at": "2023-11-07T05:31:56Z",
      "last_modified_at": "2023-11-07T05:31:56Z",
      "customer": 123,
      "account": 123,
      "department": 123
    }
  ],
  "line_count": 123,
  "name": "<string>",
  "number": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "last_modified_at": "2023-11-07T05:31:56Z",
  "customer": 123,
  "account": 123
}

Authorizations

Authorization
string
header
required

Token-based authentication with required prefix "Token"

Path Parameters

id
integer
required

Body

Response

200 - application/json

The response is of type object.