Skip to main content
PUT

Authorizations

x-api-key
string
header
required

API key with sm_ prefix. Get your key at https://sudomock.com/dashboard/api-keys

Path Parameters

mockup_id
string
required

Id of the photo mockup whose print areas are replaced.

Body

application/json

Replace a mockup's printable areas.

print_areas
PhotoMockupPrintAreaReplacement · object[]
required

Up to eight printable areas, saved row by row from the top and left to right inside each row, whatever the array order. An empty array saves the mockup without bounded placement zones.

Maximum array length: 8

Response

200 - application/json

Successful Response

data
PhotoMockupPrintAreasUpdateData · object
required

The mockup and the printable areas it carries after the replacement.

success
boolean
default:true

Always true on a successful response.