Docs

API reference

Costs and time

Rates, time entries and what animations cost. Switched off in a project until an admin switches it on.

How to sign in, send a revision and read errors is on the overview.

The project's cost settings

GET /api/projects/:id/cost-settings

Token: read. Role: viewer or above.

Change the project's cost settings

PUT /api/projects/:id/cost-settings

Token: write. Role: admin or above. Needs If-Match with the revision you read.

BodyTypeRequired
currencytextno
costsEnabledtrue or falseno
leadsSeeCoststrue or falseno
hoursNeedApprovaltrue or falseno

The members' rates

GET /api/projects/:id/rates

Token: read. Role: lead or above.

Set a member's rate from a date on

POST /api/projects/:id/rates

Token: write. Role: admin or above.

BodyTypeRequired
userIdidyes
perAnimationwhole number, 0 to 10000000000, or nullno
perHourwhole number, 0 to 10000000000, or nullno
perRevisionwhole number, 0 to 10000000000, or nullno
effectiveFromdateno

The project's costs

GET /api/projects/:id/costs

Token: read. Role: lead or above.

Costs per asset

GET /api/projects/:id/costs/assets

Token: read. Role: lead or above.

Costs as a CSV file

GET /api/projects/:id/costs/export

Token: read. Role: lead or above.

Mark an earning as paid or not paid

POST /api/cost-entries/:id/paid

Token: write. Role: admin or above.

BodyTypeRequired
paidtrue or falseyes

A requirement's cost

GET /api/requirements/:id/cost

Token: read. Role: viewer or above.

Set a requirement's cost

PUT /api/requirements/:id/cost

Token: write. Role: admin or above. Needs If-Match with the revision you read.

BodyTypeRequired
billingone of "per_animation", "per_hour"yes
pricewhole number, 0 to 10000000000, or nullno

Log time on a requirement

POST /api/requirements/:id/time-entries

Token: write. Role: contributor or above.

BodyTypeRequired
workedOndateyes
minuteswhole number, 1 to 1440yes
notetext (up to 500 characters)no

Change a time entry

PATCH /api/time-entries/:id

Token: write. Role: contributor or above. Needs If-Match with the revision you read.

BodyTypeRequired
workedOndateno
minuteswhole number, 1 to 1440no
notetext (up to 500 characters)no

Archive a time entry

POST /api/time-entries/:id/archive

Token: write. Role: contributor or above. Needs If-Match with the revision you read.

Restore a time entry that was archived

POST /api/time-entries/:id/restore

Token: write. Role: contributor or above. Needs If-Match with the revision you read.

Approve a time entry

POST /api/time-entries/:id/approve

Token: write. Role: admin or above.