API reference
References and tags
Reference files and links on sets, requirements and characters, the tags of a project, and external ids.
How to sign in, send a revision and read errors is on the overview.
The references on an animation set
GET /api/animation-sets/:id/references
Token: read. Role: viewer or above.
Add a reference to an animation set: an uploaded file or a link
POST /api/animation-sets/:id/references
Token: publish. Role: contributor or above.
Body: one of 4 shapes.
The references on a requirement
GET /api/requirements/:id/references
Token: read. Role: viewer or above.
Add a reference to a requirement: an uploaded file or a link
POST /api/requirements/:id/references
Token: publish. Role: contributor or above.
Body: one of 4 shapes.
The references on a character
GET /api/characters/:id/references
Token: read. Role: viewer or above.
Add a reference to a character: an uploaded file or a link
POST /api/characters/:id/references
Token: publish. Role: contributor or above.
Body: one of 4 shapes.
One reference
GET /api/references/:id
Token: read. Role: viewer or above.
Change a reference
PATCH /api/references/:id
Token: write. Role: contributor or above. Needs If-Match with the revision you read.
| Body | Type | Required |
|---|---|---|
title | text (up to 200 characters) | yes |
Archive a reference
POST /api/references/:id/archive
Token: write. Role: contributor or above. Needs If-Match with the revision you read.
Restore a reference that was archived
POST /api/references/:id/restore
Token: write. Role: contributor or above. Needs If-Match with the revision you read.
A reference's file
GET /api/references/:id/content
Token: read. Role: viewer or above.
The comments on a reference
GET /api/references/:id/comments
Token: read. Role: viewer or above.
| Query | Type | Required |
|---|---|---|
includeArchived | one of "true", "false" | no |
Comment on a reference
POST /api/references/:id/comments
Token: write. Role: viewer or above.
| Body | Type | Required |
|---|---|---|
body | text (up to 4000 characters) | yes |
Change your comment
PATCH /api/reference-comments/:id
Token: write. Role: viewer or above.
| Body | Type | Required |
|---|---|---|
body | text (up to 4000 characters) | yes |
Archive a comment
POST /api/reference-comments/:id/archive
Token: write. Role: viewer or above.
Restore a comment that was archived
POST /api/reference-comments/:id/restore
Token: write. Role: viewer or above.
The project's tags, with how often each is used
GET /api/projects/:id/tags
Token: read. Role: viewer or above. Also through Bridge.
Create a tag
POST /api/projects/:id/tags
Token: write. Role: contributor or above. Also through Bridge.
| Body | Type | Required |
|---|---|---|
name | text (up to 40 characters) | yes |
color | one of "slate", "red", "orange", "amber", "green", "teal", "blue", "violet", "pink" | no |
Change a tag
PATCH /api/projects/:id/tags/:tagId
Token: write. Role: contributor or above. Also through Bridge.
| Body | Type | Required |
|---|---|---|
name | text (up to 40 characters) | no |
color | one of "slate", "red", "orange", "amber", "green", "teal", "blue", "violet", "pink" | no |
Remove a tag
DELETE /api/projects/:id/tags/:tagId
Token: write. Role: contributor or above.
Restore a tag that was removed
POST /api/projects/:id/tags/:tagId/restore
Token: write. Role: contributor or above.
Which item has which tag
GET /api/projects/:id/tag-assignments
Token: read. Role: viewer or above. Also through Bridge.
Put a tag on an item
PUT /api/projects/:id/tags/:tagId/assignments/:entityType/:entityId
Token: write. Role: contributor or above. Also through Bridge.
Take a tag off an item
DELETE /api/projects/:id/tags/:tagId/assignments/:entityType/:entityId
Token: write. Role: contributor or above. Also through Bridge.
The ids other programs know items by
GET /api/projects/:id/external-ids
Token: read. Role: viewer or above. Also through Bridge.
| Query | Type | Required |
|---|---|---|
source | text | no |
kind | one of "character", "animation_set", "requirement", "asset" | no |
externalId | text (up to 200 characters) | no |
subjectId | id | no |
includeArchived | one of "true", "false" | no |
cursor | text | no |
limit | whole number, 1 to 1000 | no |