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.
| Body | Type | Required |
|---|---|---|
currency | text | no |
costsEnabled | true or false | no |
leadsSeeCosts | true or false | no |
hoursNeedApproval | true or false | no |
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.
| Body | Type | Required |
|---|---|---|
userId | id | yes |
perAnimation | whole number, 0 to 10000000000, or null | no |
perHour | whole number, 0 to 10000000000, or null | no |
perRevision | whole number, 0 to 10000000000, or null | no |
effectiveFrom | date | no |
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.
| Body | Type | Required |
|---|---|---|
paid | true or false | yes |
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.
| Body | Type | Required |
|---|---|---|
billing | one of "per_animation", "per_hour" | yes |
price | whole number, 0 to 10000000000, or null | no |
Log time on a requirement
POST /api/requirements/:id/time-entries
Token: write. Role: contributor or above.
| Body | Type | Required |
|---|---|---|
workedOn | date | yes |
minutes | whole number, 1 to 1440 | yes |
note | text (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.
| Body | Type | Required |
|---|---|---|
workedOn | date | no |
minutes | whole number, 1 to 1440 | no |
note | text (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.