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

Image → Photo Mockup: Set Print Areas

AI-generated

Summary

Replace or clear the saved print area quadrilaterals for a specific photo mockup identified by its UUID.

Inputs

  • Mockup UUID (required) — The UUID of the photo mockup to update print areas for.
  • Print Areas — A collection of one or more print areas, each defined by four points with X and Y coordinates representing the quadrilateral corners. Empty list will clear print areas, letting the API decide renderability.

Output shape

a single JSON object containing the API response of the updated photo mockup print areas

The operation sends a PUT request to the /photo-mockups/{uuid}/print-areas endpoint. The response contains the updated print area data returned by the SudoMock API. Providing no print areas clears them; the API determines if the mockup remains renderable.

Examples

Example 1: Set new print areas for a photo mockup

Provide the Mockup UUID and one or more print areas, each with four points (point1X/Y to point4X/Y), to define where artwork can be printed on the mockup image.

Example 2: Clear all print areas for a photo mockup

Provide the Mockup UUID and an empty list of print areas to remove all saved print areas from the specified photo mockup.

Links

Discussion