Design authoring

Change a layer's stacking order

Moves a layer in front of or behind the others.

post/designs/{uid}/layers/{layerId}/z-index

Request

  • Base URL
    https://api.dynapictures.com
  • URL
    https://api.dynapictures.com/designs/{uid}/layers/{layerId}/z-index
  • Auth
    HTTP bearer

Path parameters

uidstring required

The ID of the template, shown in the editor and returned by GET /templates.

layerIdstring required

The ID of the layer.

Request body

op'toFront' | 'toBack' | 'up' | 'down'

Move the layer relative to the others. Takes precedence over zIndex.

zIndexinteger

An absolute stacking position.

Response

The moved layer.

designUidstring required

The ID of the design.

layerobject required

The layer as stored in the design.

Changes

No recorded changes to this operation across all 1 revision of this API.