Skip to main content

archiveCopilotSession

Requires permission catalog:copilot:chat.

Archives one of the caller's own copilot chats. A colleague's chat, or an unknown ID, reads as missing. Limited to 20 requests a minute. Needs the catalog copilot feature on the plan and permission to chat with the copilot.

Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.

Example:

mutation ArchiveCopilotSession($id: ID!) {
archiveCopilotSession(id: $id) {
id
title
status
createdAt
activeRunId
hasIr
messages {
id
createdAt
cardIds
feedback
role
text
}
}
}

Variables:

{
"id": "id"
}

Response:

{
"data": {
"archiveCopilotSession": {
"id": "id",
"title": "string",
"status": "string",
"createdAt": 0,
"activeRunId": "string",
"hasIr": true,
"messages": [
{
"id": "id",
"createdAt": 0,
"cardIds": [
"string"
],
"feedback": {},
"role": "string",
"text": "string"
}
]
}
}
}
archiveCopilotSession(
id: ID!
): CopilotSession!

Arguments​

archiveCopilotSession.id ● ID! non-null scalar​

The ID of the copilot chat.

Type​

CopilotSession object​

A copilot conversation.