Skip to main content
POST
Edit project 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 projectId.

Body

application/json

A batch of design operations on a customer's project, run in order as one change: either every operation succeeds and the project is saved, or nothing is. The same operations as a design's (the DesignOp schemas).

ops
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 project's unit (mm for projects 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.

allowSubmitted
boolean
default:false

Edit a submitted project (added to the cart or ordered), which changes what is printed for that order. Without it such a project answers 409 project_submitted. Not needed for a dry run.

Response

OK.

The outcome of a batch that ran on a project: every operation's result, the project 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
project
Project · object
required

A customer's saved design.

Example:
content
ProjectContent · object
required

What is on each page of a customer's project, measured as in DesignContent: boxes are [x, y, width, height] in unit from the top-left of the trim; text sizes are in points.

Example: