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

uuid
string
required

Mockup UUID

Minimum string length: 36

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

The ingested mockup with every layer you can address in a render.

data
UploadResponseData · object
required

Response data

success
boolean
default:true

Success status

message
string
default:""

Optional message about the operation

warnings
UploadWarning · object[] | null

Non-fatal advisories about this upload (e.g. hidden smart object layers that are not exposed for personalization). Omitted when none.