Docs

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.

BodyTypeRequired
requirementIdidyes
xnumber, -1000000 to 1000000yes
ynumber, -1000000 to 1000000yes

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.

BodyTypeRequired
xnumber, -1000000 to 1000000no
ynumber, -1000000 to 1000000no

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.

BodyTypeRequired
requirementIdidyes

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.

BodyTypeRequired
nametext (up to 120 characters)yes
requirementIdid, or nullno
isEntrytrue or falseno
xnumber, -1000000 to 1000000no
ynumber, -1000000 to 1000000no
depthAxisIdid, or nullno
kindone 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.

BodyTypeRequired
nametext (up to 120 characters)no
requirementIdid, or nullno
isEntrytrue or falseno
xnumber, -1000000 to 1000000no
ynumber, -1000000 to 1000000no
depthAxisIdid, or nullno

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.

BodyTypeRequired
fromStateIdidyes
toStateIdidyes
ruletext (up to 2000 characters)no
prioritywhole number, -1000 to 1000no
blendMswhole number, 0 to 60000, or nullno
automatictrue or falseno
bidirectionaltrue or falseno
fromDepthone of "any", "level"no
fromLevelIdid, or nullno
toDepthone of "same", "level"no
toLevelIdid, or nullno

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.

BodyTypeRequired
ruletext (up to 2000 characters)no
prioritywhole number, -1000 to 1000no
blendMswhole number, 0 to 60000, or nullno
automatictrue or falseno
bidirectionaltrue or falseno
fromDepthone of "any", "level"no
fromLevelIdid, or nullno
toDepthone of "same", "level"no
toLevelIdid, or nullno

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.

BodyTypeRequired
nametext (up to 120 characters)yes
descriptiontext (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.

BodyTypeRequired
nametext (up to 120 characters)no
descriptiontext (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.

BodyTypeRequired
nametext (up to 120 characters)yes
blendone of "override", "additive"no
boneMasktext (up to 2000 characters)no
sortOrderwhole number, -10000 to 10000no

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.

BodyTypeRequired
nametext (up to 120 characters)no
blendone of "override", "additive"no
boneMasktext (up to 2000 characters)no
sortOrderwhole number, -10000 to 10000no

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.

QueryTypeRequired
characterIdidno

Say whether a character has a depth

PUT /api/characters/:id/depth-levels/:levelId

Token: write. Role: contributor or above. Also through Bridge.

BodyTypeRequired
usedtrue or falseyes

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.

BodyTypeRequired
nametext (up to 120 characters)yes
baseNametext (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.

BodyTypeRequired
nametext (up to 120 characters)no
baseNametext (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.

BodyTypeRequired
nametext (up to 120 characters)yes
shortNametext (up to 40 characters)no
sortOrderwhole number, -10000 to 10000no
fallbackone of "base", "level", "none"no
fallbackLevelIdid, or nullno

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.

BodyTypeRequired
nametext (up to 120 characters)no
shortNametext (up to 40 characters)no
sortOrderwhole number, -10000 to 10000no
fallbackone of "base", "level", "none"no
fallbackLevelIdid, or nullno

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.

BodyTypeRequired
stateIdidno
requirementIdidno
machineLevelIdid, or nullno
stateLevelIdid, or nullno
modeone 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.