Design authoring

Update a layer

Changes the position, size, text or styles of a layer. Only the fields you send change.

patch/designs/{uid}/layers/{layerId}

Request

  • Base URL
    https://api.dynapictures.com
  • URL
    https://api.dynapictures.com/designs/{uid}/layers/{layerId}
  • 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

xnumber

Left position in pixels.

ynumber

Top position in pixels.

widthnumber

Width in pixels.

heightnumber

Height in pixels.

textstring

The new text.

stylesobject

CSS-like style properties to merge into the layer.

Response

The updated 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.