Skip to main content
POST
Edit page content

Authorizations

Authorization
string
header
required

A secret key from Print.App admin → Domains → Secret keys, sent as Authorization: Bearer sk_…. Server-side only.

Path Parameters

id
string
required

The designId.

Body

application/json

A batch of design operations, run in order as one change: either every operation succeeds and the design is saved, or nothing is. Each operation is checked against its own schema (the DesignOp schemas) before anything runs.

ops
text.add · object · text.add · object · frame.add · object · graphic.add · object · graphic.add · object · shape.add · object · pattern.add · object · border.add · object · module.add · object · page.add · object · page.set · object · design.set · object · item.update · object · item.remove · object · align · object[]
required

The operations, run in order. Items added in the batch can be targeted by later operations through their ref.

Required array length: 1 - 100 elements
units
enum<string>

The unit of every box and length in the batch. Default: the design's unit (mm for designs measured in ft). Text sizes are always in points.

Available options:
mm,
cm,
in,
pt,
px
page

The page item operations go on: a page number from 1, or a page's ref. An operation's own page wins. Default 1.

Required range: 1 <= x <= 500
dryRun
boolean
default:false

Run the batch and report every operation's result and the resulting content, without saving anything.

Response

OK.

The outcome of a batch that ran: every operation's result, the design as saved (unchanged on a dry run), and its content now.

object
string
required
Allowed value: "ops_result"
dryRun
boolean
required
results
OpResult · object[]
required
design
Design · object
required

A design (template) your customers start from. Open it in the editor with new PrintAppClient({ designId }).

Example:
content
DesignContent · object
required

What is on each page of a design. Boxes are [x, y, width, height] in unit, measured from the top-left of the trim (of the print area, on garment pages); text sizes are in points.

Example: