Skip to main content
PATCH
/
v1
/
projects
/
{projectId}
/
browser-snapshots
/
{snapshotId}
Update browser snapshot
curl --request PATCH \
  --url https://capy.ai/api/v1/projects/{projectId}/browser-snapshots/{snapshotId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "isPrivate": true,
  "isDefault": true
}
'
{
  "id": "<string>",
  "projectId": "<string>",
  "name": "<string>",
  "domains": [
    "<string>"
  ],
  "isPrivate": true,
  "isDefault": true,
  "createdAt": "<string>",
  "updatedAt": "<string>",
  "storageState": {
    "cookies": [
      {
        "name": "<string>",
        "value": "<string>",
        "domain": "<string>",
        "path": "<string>",
        "expires": 123,
        "httpOnly": true,
        "secure": true,
        "sameSite": "Strict"
      }
    ],
    "origins": [
      {
        "origin": "<string>",
        "localStorage": [
          {
            "name": "<string>",
            "value": "<string>"
          }
        ]
      }
    ]
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.capy.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

API token (capy_xxxx). Generate at capy.ai/settings/tokens

Path Parameters

projectId
string
required

Project ID.

snapshotId
string
required

Browser snapshot ID.

Body

application/json
name
string
Required string length: 1 - 255
isPrivate
boolean
isDefault
boolean

Response

Success

id
string
required
projectId
string
required
name
string
required
domains
string[] | null
required
isPrivate
boolean
required
isDefault
boolean
required
createdAt
string
required
updatedAt
string
required
storageState
object
required