Skip to main content

pinCopilotSession

Requires permission catalog:copilot:chat.

Pin (or unpin) one of the CALLER'S OWN chats to the top of 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:

mutation PinCopilotSession($id: ID!, $pinned: Boolean!) {
pinCopilotSession(id: $id, pinned: $pinned) {
id
title
status
createdAt
awaitingApprovalCount
lastMessageAt
}
}

Variables:

{
"id": "id",
"pinned": true
}

Response:

{
"data": {
"pinCopilotSession": {
"id": "id",
"title": "string",
"status": "string",
"createdAt": 0,
"awaitingApprovalCount": 0,
"lastMessageAt": 0
}
}
}
pinCopilotSession(
id: ID!
pinned: Boolean!
): CopilotSessionSummary!

Arguments​

pinCopilotSession.id ● ID! non-null scalar​

The ID of the Copilot session.

pinCopilotSession.pinned ● Boolean! non-null scalar​

True to pin the session, false to unpin it.

Type​

CopilotSessionSummary object​

One row in the user's own conversation list.