Skip to main content

Endpoint

PUT https://api.screenshotly.dev/v1/screenshots/{screenshotId}

Headers

HeaderRequiredDescription
X-API-KeyYesYour API key
Content-TypeYesapplication/json

Path parameters

screenshotId
string
required
The unique ID of the screenshot to update.

Request body

name
string
A new name for the screenshot.
options
object
Updated options metadata for the screenshot.

Response

200 OK

{
  "success": true,
  "data": {
    "_id": "67b8a1c2d3e4f5a6b7c8d9e0",
    "url": "https://example.com",
    "name": "Updated name",
    "status": "completed",
    "imageUrl": "https://cdn.screenshotly.dev/screenshots/67b8a1c2d3e4f5a6b7c8d9e0.png",
    "options": {
      "format": "png",
      "viewport_width": 1280,
      "viewport_height": 1024
    },
    "metadata": {
      "fileSize": 245760,
      "format": "png",
      "dimensions": { "width": 1280, "height": 1024 }
    },
    "createdAt": "2025-05-14T10:00:00.000Z",
    "updatedAt": "2025-05-14T12:30:00.000Z"
  }
}

Error responses

StatusCodeDescription
401missing_api_key / invalid_api_keyInvalid or missing API key
403forbiddenYou don’t own this screenshot
404not_foundScreenshot ID doesn’t exist

Example

curl -X PUT https://api.screenshotly.dev/v1/screenshots/67b8a1c2d3e4f5a6b7c8d9e0 \
  -H "X-API-Key: $SCREENSHOTLY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name": "Homepage - May 2025"}'