Yapper API
Api reference
DELETE
/sessions/{sessionId}/assets

Takes media out of a session by asset id, whether it is filed in a workspace folder or unfiled, so it no longer appears there in the web app. Nothing is deleted: the assets stay in the team library. Media created in this session (Asset.sessionId) cannot leave it and is returned in keptAssetIds; ids that are not in the session are skipped. The in-app Yapper agent in that session is told about the change on its next turn. Free.

Authorization

bearerAuth processes:write
AuthorizationBearer <token>

In: header

Scope: processes:write

Path Parameters

sessionId*string

Header Parameters

Idempotency-Key?string

Optional key that makes the request safe to retry: a retry with the same key and body replays instead of running twice.

Length1 <= length <= 255

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

application/json

application/json

curl -X DELETE "https://example.com/sessions/string/assets" \  -H "Content-Type: application/json" \  -d '{    "assetIds": [      "string"    ]  }'
{  "sessionId": "string",  "removedAssetIds": [    "string"  ],  "keptAssetIds": [    "string"  ]}
{  "error": {    "code": "string",    "message": "string",    "requestId": "string"  }}
{  "error": {    "code": "string",    "message": "string",    "requestId": "string"  }}
{  "error": {    "code": "string",    "message": "string",    "requestId": "string"  }}
{  "error": {    "code": "string",    "message": "string",    "requestId": "string"  }}
{  "error": {    "code": "string",    "message": "string",    "requestId": "string"  }}
{  "error": {    "code": "string",    "message": "string",    "requestId": "string"  }}