Skip to main content
PATCH
/
api
/
user-snapshots
/
{id}
/
assign
Update snapshot assignment / global flag
curl --request PATCH \
  --url https://your-instance.example.com/api/user-snapshots/{id}/assign \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "assignedOrgIds": [
    "64ee9a8b1e7f2a0011223344",
    "64ee9a8b1e7f2a0011223345"
  ],
  "isGlobal": false
}
'
{
  "message": "Snapshot access updated",
  "snapshot": {
    "_id": "665f1a0c0e0a4b001a2c9f80",
    "assignedOrgIds": [
      "64ee9a8b1e7f2a0011223344"
    ],
    "isGlobal": false
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.tetherai.ca/llms.txt

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

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Body

application/json
assignedOrgIds
string[]

Superadmin only. Replace the snapshot assigned organization list.

isGlobal
boolean

When true, makes the snapshot visible to all organizations.

Response

Snapshot access updated

message
string
snapshot
object