SudoMock icon

SudoMock

Generate PSD mockups, photo mockups and product videos for Print-on-Demand automation. Upload PSDs, turn product photos into mockups, render with your designs, render videos, run renders asynchronously, track jobs, and manage webhooks.

Actions229

Font → Photo Mockup: Set Print Areas

AI-generated

Summary

Set or replace the saved print area quadrilaterals for a specific photo mockup by providing its UUID and a list of print areas defined by four (X,Y) coordinate points each.

Inputs

  • Mockup UUID (required) — UUID of the photo mockup to set print areas for.
  • Print Areas — A collection of print areas, each defined by four points (each with X and Y coordinates) specifying the print area quadrilateral; this list can be empty to clear print areas.

Output shape

a single JSON object representing the API response for the update operation

The operation sends a PUT request to update print areas on the specified mockup. The response JSON contains details about the updated mockup. If an empty list of print areas is sent, the API determines if the mockup remains renderable without saved areas.

Examples

Example 1: Update a photo mockup's print areas with two quadrilaterals.

Set Mockup UUID to the target mockup's UUID and add two print areas with their respective point coordinates.

Links

Discussion