Unmounts a resource from a session and clears its internal copy. This operation cannot be undone.
Prerequisites
Endpoint and authentication configured. For details, see Overview and authentication.
Endpoint
DELETE /sessions/{session_id}/resources/{resource_id}
Path parameters
| Field | Required | Type | Description |
|---|---|---|---|
session_id | Yes | string | Session ID, format sesn_<ULID> |
resource_id | Yes | string | Resource ID, format sesrsc_<ULID> |
Request example
Response example
Response fields
| Field | Type | Description |
|---|---|---|
id | string | ID of the unmounted resource |
type | string | Always session_resource_deleted, indicating successful unmount |
request_id | string | Unique request identifier |
Error codes
| HTTP status | Error code | Description |
|---|---|---|
| 400 | InvalidParameter | Required parameter missing or invalid |
| 401 | InvalidApiKey | Invalid API key provided |