User Snapshots
Update snapshot assignment / global flag
Updates which organizations a snapshot is assigned to and whether it is globally visible. Superadmins may set both assignedOrgIds and isGlobal; admins may only toggle isGlobal on snapshots they created.
Authorization
bearerAuth AuthorizationBearer <token>
In: header
Path Parameters
id*string
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X PATCH "https://example.com/api/user-snapshots/string/assign" \ -H "Content-Type: application/json" \ -d '{ "assignedOrgIds": [ "64ee9a8b1e7f2a0011223344", "64ee9a8b1e7f2a0011223345" ], "isGlobal": false }'{ "message": "Snapshot access updated", "snapshot": { "_id": "665f1a0c0e0a4b001a2c9f80", "assignedOrgIds": [ "64ee9a8b1e7f2a0011223344" ], "isGlobal": false }}