Skip to main content
PATCH

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 to rename or give named colours.

Body

application/json

Update request for PATCH /api/v1/psd-mockups/{uuid}

name
string | null

New mockup name

Required string length: 1 - 255
colors
MockupColour · object[] | null

The colours this mockup answers to by name. Replaces the whole list, so send every colour you want to keep. Send [] to clear it.

Maximum array length: 96
folder_uuid
string | null

The folder to move this mockup into. Send null to move it to the top of the library. Leave it out to leave it where it is.

Example:

"c4f1a7d2-3b85-4e60-9a1f-7d2c5e8b4061"

Response

200 - application/json

Successful Response

data
PhotoMockupUpdateData · object
required

The mockup as it stands after the update.

success
boolean
default:true

Always true on a successful response.