unarchiveCopilotSession
Requires permission catalog:copilot:chat.
Bring one of the CALLER'S OWN archived chats back into their list.
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:
- GraphQL
- cURL
mutation UnarchiveCopilotSession($id: ID!) {
unarchiveCopilotSession(id: $id) {
id
title
status
createdAt
awaitingApprovalCount
lastMessageAt
}
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "mutation UnarchiveCopilotSession($id: ID!) {\n unarchiveCopilotSession(id: $id) {\n id\n title\n status\n createdAt\n awaitingApprovalCount\n lastMessageAt\n }\n}",
"variables": {
"id": "id"
}
}
EOF
Variables:
{
"id": "id"
}
Response:
{
"data": {
"unarchiveCopilotSession": {
"id": "id",
"title": "string",
"status": "string",
"createdAt": 0,
"awaitingApprovalCount": 0,
"lastMessageAt": 0
}
}
}
unarchiveCopilotSession(
id: ID!
): CopilotSessionSummary!
Arguments
unarchiveCopilotSession.id ● ID! non-null scalar
The ID of the Copilot session.
Type
CopilotSessionSummary object
One row in the user's own conversation list.