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

Photo Mockup → Photo Mockup: Set Print Areas

AI-generated

Summary

Set or replace the print areas on a specified photo mockup by providing one or more quadrilateral print area coordinates.

Inputs

  • Mockup UUID (required) — UUID of the photo mockup to set print areas for.
  • Print Areas — List of print area quadrilaterals, each defined by four points (X and Y coordinates). Can be an empty list to clear print areas.

Output shape

a single JSON object representing the updated photo mockup with its print areas.

This operation sends a PUT request to update the print areas on the mockup. An empty list of print areas may make the mockup unrenderable depending on the API. The response includes the updated mockup data.

Examples

Example 1: Set multiple print areas for a photo mockup with UUID 'c315f78f-d2c7-4541-b240-a9372842de94', each print area defined by four corner coordinates.

Provide the Mockup UUID and a fixed collection of print areas, each comprising point1X, point1Y, point2X, point2Y, point3X, point3Y, point4X, and point4Y as numbers.

Links

Discussion