API reference
Source control and discovery
Connections to source control, the files they follow, and files found on workstations.
How to sign in, send a revision and read errors is on the overview.
Choose where the project takes its files from
PUT /api/projects/:id/source-mode
Token: write. Role: admin or above.
| Body | Type | Required |
|---|---|---|
sourceMode | one of "version_control", "animsync" | yes |
The project's submitted revisions
GET /api/projects/:id/revisions
Token: read. Role: viewer or above.
Submit a revision of several files at once
POST /api/projects/:id/revisions
Token: publish. Role: contributor or above.
| Body | Type | Required |
|---|---|---|
clientId | id | yes |
description | text (up to 4000 characters) | yes |
files | list of { asset: object; versionId?: id; source: object; comment?: text (up to 4000 characters); fulfils?: list of object (at most 50) } (at most 50) | yes |
Comment on a revision
POST /api/projects/:id/revisions/:revisionId/comments
Token: write. Role: contributor or above.
| Body | Type | Required |
|---|---|---|
body | text (up to 4000 characters) | yes |
The project's source control connections
GET /api/projects/:id/vcs-connections
Token: read. Role: viewer or above.
Add a connection
POST /api/projects/:id/vcs-connections
Token: write. Role: admin or above.
| Body | Type | Required |
|---|---|---|
provider | one of "git", "perforce", "lore", "plastic" | yes |
name | text (up to 80 characters) | yes |
remoteLabel | text (up to 200 characters) | no |
branches | list of text (up to 200 characters) (at most 20) | no |
mode | one of "agent", "direct" | no |
remoteUrl | text (up to 300 characters) | no |
remoteUser | text (up to 120 characters) | no |
Change a connection
PATCH /api/vcs-connections/:id
Token: write. Role: admin or above.
| Body | Type | Required |
|---|---|---|
name | text (up to 80 characters) | no |
remoteLabel | text (up to 200 characters) | no |
branches | list of text (up to 200 characters) (at most 20) | no |
enabled | true or false | no |
mode | one of "agent", "direct" | no |
remoteUrl | text (up to 300 characters) | no |
remoteUser | text (up to 120 characters) | no |
Remove a connection
DELETE /api/vcs-connections/:id
Token: write. Role: admin or above.
Set a connection's credential
PUT /api/vcs-connections/:id/credential
It is stored sealed and never shown.
Token: write. Role: admin or above.
| Body | Type | Required |
|---|---|---|
credential | text (up to 4096 characters) | yes |
Remove a connection's credential
DELETE /api/vcs-connections/:id/credential
Token: write. Role: admin or above.
Make a new deploy key
POST /api/vcs-connections/:id/deploy-key
The old one stops working here.
Token: write. Role: admin or above.
Read a direct connection now
POST /api/vcs-connections/:id/sync
Token: write. Role: admin or above.
Add a path rule
POST /api/vcs-connections/:id/rules
Token: write. Role: admin or above.
| Body | Type | Required |
|---|---|---|
pattern | text (up to 300 characters) | yes |
role | one of "source", "export", "engine", "ignore" | yes |
ignoreCase | true or false | no |
Put the path rules in order
PUT /api/vcs-connections/:id/rule-order
Token: write. Role: admin or above.
| Body | Type | Required |
|---|---|---|
ids | list of id (at most 200) | yes |
Try the path rules against the files
POST /api/vcs-connections/:id/rule-test
Only paths are returned.
Token: write. Role: admin or above.
| Body | Type | Required |
|---|---|---|
draft | { pattern: text (up to 300 characters); role: one of "source", "export", "engine", "ignore"; ignoreCase?: true or false } | no |
Remove a path rule
DELETE /api/vcs-path-rules/:id
Token: write. Role: admin or above.
Where the characters' files are
GET /api/projects/:id/vcs-locations
Token: read. Role: viewer or above.
Add a location
POST /api/projects/:id/vcs-locations
Token: write. Role: admin or above.
| Body | Type | Required |
|---|---|---|
connectionId | id | yes |
kind | one of "skeleton", "skeletal_mesh", "animation" | yes |
stage | one of "source", "export", "engine" | yes |
pattern | text (up to 300 characters) | yes |
ignoreCase | true or false | no |
animationSetId | id, or null | no |
characterId | id, or null | no |
Change a location
PATCH /api/vcs-locations/:id
Token: write. Role: admin or above.
| Body | Type | Required |
|---|---|---|
connectionId | id | no |
kind | one of "skeleton", "skeletal_mesh", "animation" | no |
stage | one of "source", "export", "engine" | no |
pattern | text (up to 300 characters) | no |
ignoreCase | true or false | no |
animationSetId | id, or null | no |
Remove a location
DELETE /api/vcs-locations/:id
Token: write. Role: admin or above.
Changed files that follow no asset yet
GET /api/projects/:id/vcs/inbox
Token: read. Role: viewer or above.
An asset's files and revisions in source control
GET /api/assets/:id/vcs
Token: read. Role: viewer or above.
Make an asset follow a path
POST /api/projects/:id/vcs/path-links
Token: write. Role: contributor or above.
| Body | Type | Required |
|---|---|---|
connectionId | id | yes |
path | text (up to 1000 characters) | yes |
assetId | id | yes |
stage | one of "source", "export", "engine" | no |
Stop following a path
DELETE /api/vcs-path-links/:id
Token: write. Role: contributor or above.
Where opening a revision stands
GET /api/vcs-revisions/:id/preview
Token: read. Role: viewer or above.
Open a revision without making a version of it
POST /api/vcs-revisions/:id/preview
Token: write. Role: viewer or above.
A revision's file
GET /api/vcs-revisions/:id/content
Token: read. Role: viewer or above.
Ignore a revision in the inbox
POST /api/vcs-revisions/:id/ignore
Token: write. Role: contributor or above.
Stop ignoring a revision
DELETE /api/vcs-revisions/:id/ignore
Token: write. Role: contributor or above.
Ask for a revision to be published as a version
POST /api/vcs-revisions/:id/fetch-requests
Token: write. Role: contributor or above.
| Body | Type | Required |
|---|---|---|
assetId | id, or null | no |
assetName | text (up to 200 characters), or null | no |
requirementId | id, or null | no |
assetKind | one of "animation", "skeleton", "skeletal_mesh", "other", "uncast", or null | no |
Take that request back
DELETE /api/vcs-revisions/:id/fetch-requests
Token: write. Role: contributor or above.
What a sync agent needs to know
GET /api/integrations/v1/projects/:code/vcs-config
Token: read. Role: viewer or above.
Report changes, from a sync agent
POST /api/integrations/v1/projects/:code/vcs/:connection/ingest
Token: publish. Role: contributor or above.
| Body | Type | Required |
|---|---|---|
scope | text (up to 200 characters) | yes |
cursor | text (up to 200 characters), or null | no |
changes | list of { changeRef: text (up to 200 characters); author?: text (up to 200 characters); submittedAt: date and time; description?: text (up to 4000 characters); files: list of object (at most 500) } (at most 200) | yes |
catchUp | { version: whole number, 1 or more; done: true or false }, or null | no |
Report a fetched revision, from a sync agent
POST /api/integrations/v1/projects/:code/vcs-fetch-requests/:requestId/complete
Token: publish. Role: contributor or above.
Body: { versionId: id } or { sha256: text; filename: text (up to 255 characters) }.
Report a failed fetch, from a sync agent
POST /api/integrations/v1/projects/:code/vcs-fetch-requests/:requestId/fail
Token: publish. Role: contributor or above.
| Body | Type | Required |
|---|---|---|
error | text (up to 2000 characters) | yes |
Upload what a scan found on a workstation
POST /api/integrations/v1/projects/:code/discovery-runs
animsync scan --upload does this.
Token: write. Role: contributor or above.
| Body | Type | Required |
|---|---|---|
schema | one of "animsync.discovery/v1", "sto.discovery/v1" | yes |
scannedAt | date and time | yes |
tool | { name: text (up to 40 characters); version: text (up to 40 characters) } | yes |
roots | list of { alias: text } (at most 20) | yes |
files | list of { root: text; relativePath: text; sizeBytes: whole number, 0 or more; modifiedAt: date and time; sha256: text, or null; status?: one of "matched", "changed", "unmatched", "ambiguous", "unverified"; confidence?: one of "exact", "probable", "none"; candidates?: list of object (at most 20) } (at most 2000) | yes |
The folder names scans may report
GET /api/projects/:id/discovery-roots
Token: read. Role: viewer or above.
Set the folder names scans may report
PUT /api/projects/:id/discovery-roots
Token: write. Role: admin or above.
| Body | Type | Required |
|---|---|---|
roots | list of { alias: text; vcsPrefix: text } (at most 20) | yes |
The project's scans
GET /api/projects/:id/discovery-runs
Token: read. Role: viewer or above.
One scan, with its files
GET /api/projects/:id/discovery-runs/:runId
Token: read. Role: viewer or above.
Confirm or reject a match
POST /api/projects/:id/discovered-files/:fileId/decision
Token: write. Role: contributor or above.
| Body | Type | Required |
|---|---|---|
method | one of "confirmed", "rejected" | yes |