API reference
Blendspaces, state machines, layers and depth
What is inside a blendspace, a collection or a state machine, the layer interfaces animations play on, and the depths (stances, gaits) of a state machine.
How to sign in, send a revision and read errors is on the overview.
Add a sample to a blendspace
POST /api/requirements/:id/blendspace-samples
Token: write. Role: contributor or above. Also through Bridge.
| Body | Type | Required |
|---|---|---|
requirementId | id | yes |
x | number, -1000000 to 1000000 | yes |
y | number, -1000000 to 1000000 | yes |
Move a blendspace sample
PATCH /api/blendspace-samples/:id
Token: write. Role: contributor or above. Needs If-Match with the revision you read. Also through Bridge.
| Body | Type | Required |
|---|---|---|
x | number, -1000000 to 1000000 | no |
y | number, -1000000 to 1000000 | no |
Archive a blendspace sample
POST /api/blendspace-samples/:id/archive
Token: write. Role: contributor or above. Needs If-Match with the revision you read. Also through Bridge.
Restore a blendspace sample that was archived
POST /api/blendspace-samples/:id/restore
Token: write. Role: contributor or above. Needs If-Match with the revision you read. Also through Bridge.
Add an animation to a collection
POST /api/requirements/:id/collection-members
Token: write. Role: contributor or above. Also through Bridge.
| Body | Type | Required |
|---|---|---|
requirementId | id | yes |
Take an animation out of a collection
POST /api/collection-members/:id/archive
Token: write. Role: contributor or above. Needs If-Match with the revision you read. Also through Bridge.
Put an animation back into a collection
POST /api/collection-members/:id/restore
Token: write. Role: contributor or above. Needs If-Match with the revision you read. Also through Bridge.
Add a state to a state machine
POST /api/requirements/:id/states
Token: write. Role: contributor or above. Also through Bridge.
| Body | Type | Required |
|---|---|---|
name | text (up to 120 characters) | yes |
requirementId | id, or null | no |
isEntry | true or false | no |
x | number, -1000000 to 1000000 | no |
y | number, -1000000 to 1000000 | no |
depthAxisId | id, or null | no |
kind | one of "state", "conduit" | no |
Change a state
PATCH /api/states/:id
Token: write. Role: contributor or above. Needs If-Match with the revision you read. Also through Bridge.
| Body | Type | Required |
|---|---|---|
name | text (up to 120 characters) | no |
requirementId | id, or null | no |
isEntry | true or false | no |
x | number, -1000000 to 1000000 | no |
y | number, -1000000 to 1000000 | no |
depthAxisId | id, or null | no |
Archive a state
POST /api/states/:id/archive
Token: write. Role: contributor or above. Needs If-Match with the revision you read. Also through Bridge.
Restore a state that was archived
POST /api/states/:id/restore
Token: write. Role: contributor or above. Needs If-Match with the revision you read. Also through Bridge.
Add a transition to a state machine
POST /api/requirements/:id/state-transitions
Token: write. Role: contributor or above. Also through Bridge.
| Body | Type | Required |
|---|---|---|
fromStateId | id | yes |
toStateId | id | yes |
rule | text (up to 2000 characters) | no |
priority | whole number, -1000 to 1000 | no |
blendMs | whole number, 0 to 60000, or null | no |
automatic | true or false | no |
bidirectional | true or false | no |
fromDepth | one of "any", "level" | no |
fromLevelId | id, or null | no |
toDepth | one of "same", "level" | no |
toLevelId | id, or null | no |
Change a state transition
PATCH /api/state-transitions/:id
Token: write. Role: contributor or above. Needs If-Match with the revision you read. Also through Bridge.
| Body | Type | Required |
|---|---|---|
rule | text (up to 2000 characters) | no |
priority | whole number, -1000 to 1000 | no |
blendMs | whole number, 0 to 60000, or null | no |
automatic | true or false | no |
bidirectional | true or false | no |
fromDepth | one of "any", "level" | no |
fromLevelId | id, or null | no |
toDepth | one of "same", "level" | no |
toLevelId | id, or null | no |
Archive a state transition
POST /api/state-transitions/:id/archive
Token: write. Role: contributor or above. Needs If-Match with the revision you read. Also through Bridge.
Restore a state transition that was archived
POST /api/state-transitions/:id/restore
Token: write. Role: contributor or above. Needs If-Match with the revision you read. Also through Bridge.
Create a layer interface
POST /api/projects/:id/layer-interfaces
Token: write. Role: contributor or above. Also through Bridge.
| Body | Type | Required |
|---|---|---|
name | text (up to 120 characters) | yes |
description | text (up to 4000 characters) | no |
Change a layer interface
PATCH /api/layer-interfaces/:id
Token: write. Role: contributor or above. Needs If-Match with the revision you read. Also through Bridge.
| Body | Type | Required |
|---|---|---|
name | text (up to 120 characters) | no |
description | text (up to 4000 characters) | no |
Archive a layer interface
POST /api/layer-interfaces/:id/archive
Token: write. Role: contributor or above. Needs If-Match with the revision you read. Also through Bridge.
Restore a layer interface that was archived
POST /api/layer-interfaces/:id/restore
Token: write. Role: contributor or above. Needs If-Match with the revision you read. Also through Bridge.
Add a slot to a layer interface
POST /api/layer-interfaces/:id/slots
Token: write. Role: contributor or above. Also through Bridge.
| Body | Type | Required |
|---|---|---|
name | text (up to 120 characters) | yes |
blend | one of "override", "additive" | no |
boneMask | text (up to 2000 characters) | no |
sortOrder | whole number, -10000 to 10000 | no |
Change a layer slot
PATCH /api/layer-slots/:id
Token: write. Role: contributor or above. Needs If-Match with the revision you read. Also through Bridge.
| Body | Type | Required |
|---|---|---|
name | text (up to 120 characters) | no |
blend | one of "override", "additive" | no |
boneMask | text (up to 2000 characters) | no |
sortOrder | whole number, -10000 to 10000 | no |
Archive a layer slot
POST /api/layer-slots/:id/archive
Token: write. Role: contributor or above. Needs If-Match with the revision you read. Also through Bridge.
Restore a layer slot that was archived
POST /api/layer-slots/:id/restore
Token: write. Role: contributor or above. Needs If-Match with the revision you read. Also through Bridge.
The project's depth axes, each with its depths in order
GET /api/projects/:id/depth-axes
The base is the first and has only a name.
Token: read. Role: viewer or above. Also through Bridge.
What each state and slot of a state machine has at each depth: its own, inherited, missing or not used
GET /api/requirements/:id/depth-coverage
With characterId, for that character's sets and depths.
Token: read. Role: viewer or above. Also through Bridge.
| Query | Type | Required |
|---|---|---|
characterId | id | no |
Say whether a character has a depth
PUT /api/characters/:id/depth-levels/:levelId
Token: write. Role: contributor or above. Also through Bridge.
| Body | Type | Required |
|---|---|---|
used | true or false | yes |
Create a depth axis, such as Stance
POST /api/projects/:id/depth-axes
Its base is the first depth and has only a name.
Token: write. Role: contributor or above. Also through Bridge.
| Body | Type | Required |
|---|---|---|
name | text (up to 120 characters) | yes |
baseName | text (up to 120 characters) | no |
Change a depth axis
PATCH /api/depth-axes/:id
Token: write. Role: contributor or above. Needs If-Match with the revision you read. Also through Bridge.
| Body | Type | Required |
|---|---|---|
name | text (up to 120 characters) | no |
baseName | text (up to 120 characters) | no |
Archive a depth axis
POST /api/depth-axes/:id/archive
Token: write. Role: contributor or above. Needs If-Match with the revision you read. Also through Bridge.
Restore a depth axis that was archived
POST /api/depth-axes/:id/restore
Token: write. Role: contributor or above. Needs If-Match with the revision you read. Also through Bridge.
Add a depth to an axis, with what it falls back to
POST /api/depth-axes/:id/levels
Token: write. Role: contributor or above. Also through Bridge.
| Body | Type | Required |
|---|---|---|
name | text (up to 120 characters) | yes |
shortName | text (up to 40 characters) | no |
sortOrder | whole number, -10000 to 10000 | no |
fallback | one of "base", "level", "none" | no |
fallbackLevelId | id, or null | no |
Change a depth
PATCH /api/depth-levels/:id
Token: write. Role: contributor or above. Needs If-Match with the revision you read. Also through Bridge.
| Body | Type | Required |
|---|---|---|
name | text (up to 120 characters) | no |
shortName | text (up to 40 characters) | no |
sortOrder | whole number, -10000 to 10000 | no |
fallback | one of "base", "level", "none" | no |
fallbackLevelId | id, or null | no |
Archive a depth
POST /api/depth-levels/:id/archive
Token: write. Role: contributor or above. Needs If-Match with the revision you read. Also through Bridge.
Restore a depth that was archived
POST /api/depth-levels/:id/restore
Token: write. Role: contributor or above. Needs If-Match with the revision you read. Also through Bridge.
Mark a state or an animation of a state machine as not used at a depth, or a state as inheriting nothing there
POST /api/requirements/:id/depth-marks
Token: write. Role: contributor or above. Also through Bridge.
| Body | Type | Required |
|---|---|---|
stateId | id | no |
requirementId | id | no |
machineLevelId | id, or null | no |
stateLevelId | id, or null | no |
mode | one of "unused", "own" | yes |
Archive a depth mark
POST /api/depth-marks/:id/archive
Token: write. Role: contributor or above. Needs If-Match with the revision you read. Also through Bridge.
Restore a depth mark that was archived
POST /api/depth-marks/:id/restore
Token: write. Role: contributor or above. Needs If-Match with the revision you read. Also through Bridge.