API reference
Assets and versions
Assets, the requirements they fulfil, their versions and files, and how publishing works.
How to sign in, send a revision and read errors is on the overview.
The project's assets
GET /api/projects/:id/assets
Token: read. Role: viewer or above.
| Query | Type | Required |
|---|---|---|
includeArchived | one of "true", "false" | no |
Create an asset without a file
POST /api/projects/:id/assets
Token: write. Role: contributor or above. Also through Bridge.
| Body | Type | Required |
|---|---|---|
id | id | no |
name | text (up to 200 characters) | yes |
kind | one of "animation", "skeleton", "skeletal_mesh", "other", "uncast" | no |
description | text (up to 20000 characters) | no |
skeletonId | id, or null | no |
One asset, with the requirements it fulfils
GET /api/assets/:id
Token: read. Role: viewer or above. Also through Bridge.
Change an asset
PATCH /api/assets/:id
The reviewer, priority and review date need lead.
Token: write. Role: contributor or above. Needs If-Match with the revision you read. Also through Bridge.
| Body | Type | Required |
|---|---|---|
name | text (up to 200 characters) | no |
kind | one of "animation", "skeleton", "skeletal_mesh", "other", "uncast" | no |
description | text (up to 20000 characters) | no |
skeletonId | id, or null | no |
reviewerId | id, or null | no |
reviewerFocus | text (up to 60 characters) | no |
priority | one of "critical", "high", "medium", "low" | no |
reviewDueOn | date, or null | no |
motionUpAxis | one of "x", "y", "z", or null | no |
motionForwardAxis | one of "+x", "-x", "+y", "-y", "+z", "-z", or null | no |
motionSourceNode | text (up to 200 characters), or null | no |
motionClip | text (up to 200 characters), or null | no |
followsSourceControl | true or false | no |
Archive an asset
POST /api/assets/:id/archive
Token: write. Role: contributor or above. Needs If-Match with the revision you read. Also through Bridge.
Restore an asset that was archived
POST /api/assets/:id/restore
Token: write. Role: contributor or above. Needs If-Match with the revision you read. Also through Bridge.
Set the id another program knows an asset by
PUT /api/assets/:id/external-ids/:source
source names that program.
Token: write. Role: contributor or above. Also through Bridge.
| Body | Type | Required |
|---|---|---|
externalId | text (up to 200 characters) | yes |
url | URL, or null | no |
fields | object | no |
Forget the id another program knows an asset by
DELETE /api/assets/:id/external-ids/:source
Token: write. Role: contributor or above. Also through Bridge.
What an asset depends on and what depends on it
GET /api/assets/:id/relations
Token: read. Role: viewer or above. Also through Bridge.
The people an asset matters to
GET /api/assets/:id/stakeholders
Token: read. Role: viewer or above.
An asset's versions
GET /api/assets/:id/versions
Token: read. Role: viewer or above.
The assets linked to a requirement
GET /api/requirements/:id/fulfilments
Token: read. Role: viewer or above. Also through Bridge.
Link an asset to a requirement, or change the link
PUT /api/requirements/:id/fulfilments/:assetId
Token: write. Role: contributor or above. Also through Bridge.
| Body | Type | Required |
|---|---|---|
role | one of "primary", "variant", "partial", "reference" | no |
variant | text (up to 80 characters) | no |
Unlink an asset from a requirement
DELETE /api/requirements/:id/fulfilments/:assetId
Token: write. Role: contributor or above. Also through Bridge.
One version
GET /api/asset-versions/:id
Token: read. Role: viewer or above.
A version's source file, as a download
GET /api/asset-versions/:id/source
Token: read. Role: viewer or above.
A version's 3D preview file
GET /api/asset-versions/:id/preview-file
Token: read. Role: viewer or above.
Add a 3D preview, from a file already uploaded
POST /api/asset-versions/:id/preview
Token: publish. Role: contributor or above.
| Body | Type | Required |
|---|---|---|
sha256 | text | yes |
filename | text (up to 255 characters) | yes |
Add a review video, from a file already uploaded
POST /api/asset-versions/:id/review-media
Token: publish. Role: contributor or above.
| Body | Type | Required |
|---|---|---|
id | id | no |
sha256 | text | yes |
filename | text (up to 255 characters) | yes |
contentType | one of "video/mp4", "video/webm" | yes |
fpsNum | whole number, 1 to 1000000 | yes |
fpsDen | whole number, 1 to 1000000 | no |
startFrame | whole number, -1000000 to 1000000 | no |
frameCount | whole number, 1 to 10000000 | yes |
What changed since the version before
GET /api/asset-versions/:id/changes
Token: read. Role: viewer or above.
A version's motion analysis
GET /api/asset-versions/:id/motion-analysis
Token: read. Role: viewer or above.
Analyse the motion of a version
POST /api/asset-versions/:id/motion-analysis
Token: write. Role: contributor or above.
| Body | Type | Required |
|---|---|---|
force | true or false | no |
Whether you watch an asset
GET /api/assets/:id/watch
Token: read. Role: viewer or above.
Watch an asset
PUT /api/assets/:id/watch
Token: write. Role: viewer or above.
Stop watching an asset
DELETE /api/assets/:id/watch
Token: write. Role: viewer or above.
Where an asset is implemented in the game
GET /api/assets/:id/implementations
Token: read. Role: viewer or above.
Add an implementation
POST /api/assets/:id/implementations
Token: write. Role: contributor or above.
| Body | Type | Required |
|---|---|---|
ownerId | id, or null | no |
context | text (up to 200 characters) | yes |
focus | text (up to 60 characters) | no |
status | one of "planned", "in_progress", "implemented", "on_hold" | no |
versionId | id, or null | no |
notes | text (up to 4000 characters) | no |
priority | one of "critical", "high", "medium", "low" | no |
dueOn | date, or null | no |
Change an implementation
PATCH /api/implementations/:id
Token: write. Role: contributor or above. Needs If-Match with the revision you read.
| Body | Type | Required |
|---|---|---|
ownerId | id, or null | no |
context | text (up to 200 characters) | no |
focus | text (up to 60 characters) | no |
status | one of "planned", "in_progress", "implemented", "on_hold" | no |
versionId | id, or null | no |
notes | text (up to 4000 characters) | no |
priority | one of "critical", "high", "medium", "low" | no |
dueOn | date, or null | no |
Archive an implementation
POST /api/implementations/:id/archive
Token: write. Role: contributor or above. Needs If-Match with the revision you read.
Restore an implementation that was archived
POST /api/implementations/:id/restore
Token: write. Role: contributor or above. Needs If-Match with the revision you read.
Upload a file
POST /api/integrations/v1/blobs
Publish it afterwards by its SHA-256. Safe to repeat.
Token: publish.
Body: the file itself, as application/octet-stream. Optional header x-animsync-sha256: what you computed.
Whether a file is already stored
HEAD /api/integrations/v1/blobs/:sha256
Token: publish.
Publish an uploaded file as a new version
POST /api/integrations/v1/publish
Safe to repeat with the same version id.
Token: publish. Role: contributor or above.
| Body | Type | Required |
|---|---|---|
project | text (up to 16 characters) | yes |
asset | { id?: id; name?: text (up to 200 characters); kind?: one of "animation", "skeleton", "skeletal_mesh", "other", "uncast"; description?: text (up to 20000 characters); skeletonId?: id } | yes |
version | { id: id; source: { sha256: text; filename: text (up to 255 characters); contentType?: text (up to 200 characters) }; reviewMedia?: { id?: id; sha256: text; filename: text (up to 255 characters); contentType: one of "video/mp4", "video/webm"; fpsNum: whole number, 1 to 1000000; fpsDen?: whole number, 1 to 1000000; startFrame?: whole number, -1000000 to 1000000; frameCount: whole number, 1 to 10000000 }, or null; preview?: { sha256: text; filename: text (up to 255 characters) }, or null; derivedFromVersionId?: id, or null; comment?: text (up to 4000 characters); provenance?: object } | yes |
fulfils | list of { requirementId: id; role?: one of "primary", "variant", "partial", "reference"; variant?: text (up to 80 characters) } (at most 50) | no |
ticket | text (up to 500 characters) | no |
fetchRequestId | id | no |
The project's assets and the hashes of their versions, to compare with local files
GET /api/integrations/v1/projects/:code/source-index
Token: read. Role: viewer or above.