This endpoint is in preview and may be modified or removed at any time.
To use this endpoint, add preview=true to the request query parameters.
Delete a conversation session between the calling user and an Agent. Once deleted, the session can no longer be accessed and will not appear in session lists.
Third-party applications using this endpoint via OAuth2 must request the following operation scope: api:aip-agents-write.
stringAn RID identifying an AIP Agent created in AIP Agent Studio.
stringThe Resource Identifier (RID) of the conversation session.
1
2
3
curl -X DELETE \
\t-H "Authorization: Bearer $TOKEN" \
"https://$HOSTNAME/api/v2/aipAgents/agents/ri.aip-agents..agent.732cd5b4-7ca7-4219-aabb-6e976faf63b1/sessions/ri.aip-agents..session.292db3b2-b653-4de6-971c-7e97a7b881d6?preview=true"| Error Name | ||
|---|---|---|
Delete | Error Code | PERMISSION_DENIED |
| Status Code | 403 | |
| Description | Could not delete the Session. | |
| Parameters | agentRid, sessionRid | |
Session | Error Code | NOT_FOUND |
| Status Code | 404 | |
| Description | The given Session could not be found. | |
| Parameters | agentRid, sessionRid | |
Agent | Error Code | NOT_FOUND |
| Status Code | 404 | |
| Description | The given Agent could not be found. | |
| Parameters | agentRid | |
See Errors for a general overview of errors in the platform.