PSD mockups

Update an existing PSD mockup

Rename a mockup, or set the colours it answers to by name.

patch/api/v1/psd-mockups/{uuid}

Request

  • Base URL: https://api.sudomock.com
  • URL: https://api.sudomock.com/api/v1/psd-mockups/{uuid}
  • Auth: API key in header x-api-key

Path parameters

uuidstring required

Mockup UUID

Request body

namestring nullable

New mockup name

Example request

{
  "name": "Updated Mockup Name"
}

Response

Successful Response

successboolean

Success status

messagestring

Optional message about the operation

Example response

{
  "data": {
    "collections": [],
    "group_layers": [],
    "height": 5000,
    "name": "Heavyweight tee front",
    "smart_objects": [
      {
        "blend_mode": "multiply",
        "layer_name": "Front print",
        "name": "Front print",
        "position": {
          "height": 3413,
          "width": 3000,
          "x": 512,
          "y": 730
        },
        "print_area_presets": [
          {
            "name": "Default",
            "position": {
              "height": 3413,
              "width": 3000,
              "x": 0,
              "y": 0
            },
            "size": {
              "height": 3413,
              "width": 3000
            },
            "thumbnails": [],
            "uuid": "d07f5b18-2c94-4e83-a6b1-95f3c8e27a40"
          }
        ],
        "quad": [
          [
            512,
            742
          ],
          [
            3512,
            730
          ],
          [
            3499,
            4143
          ],
          [
            524,
            4131
          ]
        ],
        "size": {
          "height": 3413,
          "width": 3000
        },
        "uuid": "b41a7e52-93c8-4d61-8f07-2ae5c9d04713"
      }
    ],
    "text_layers": [],
    "thumbnail": "https://cdn.sudomock.com/mockup-assets/8f2c1d90-6b4e-4a37-9e55-0d1c7a3f21b8/thumbnails/thumb_720.webp",
    "thumbnails": [
      {
        "url": "https://cdn.sudomock.com/mockup-assets/8f2c1d90-6b4e-4a37-9e55-0d1c7a3f21b8/thumbnails/thumb_720.webp",
        "width": 720
      },
      {
        "url": "https://cdn.sudomock.com/mockup-assets/8f2c1d90-6b4e-4a37-9e55-0d1c7a3f21b8/thumbnails/thumb_480.webp",
        "width": 480
      },
      {
        "url": "https://cdn.sudomock.com/mockup-assets/8f2c1d90-6b4e-4a37-9e55-0d1c7a3f21b8/thumbnails/thumb_240.webp",
        "width": 240
      }
    ],
    "uuid": "8f2c1d90-6b4e-4a37-9e55-0d1c7a3f21b8",
    "width": 4000
  },
  "message": "",
  "success": true
}

Changes

No recorded changes to this operation across all 1 revision of this API.