renameCopilotSession
Requires permission catalog:copilot:chat.
Rename one of the CALLER'S OWN copilot threads (trimmed, max 120 chars).
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 RenameCopilotSession($id: ID!, $title: String!) {
renameCopilotSession(id: $id, title: $title) {
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 RenameCopilotSession($id: ID!, $title: String!) {\n renameCopilotSession(id: $id, title: $title) {\n id\n title\n status\n createdAt\n awaitingApprovalCount\n lastMessageAt\n }\n}",
"variables": {
"id": "id",
"title": "string"
}
}
EOF
Variables:
{
"id": "id",
"title": "string"
}
Response:
{
"data": {
"renameCopilotSession": {
"id": "id",
"title": "string",
"status": "string",
"createdAt": 0,
"awaitingApprovalCount": 0,
"lastMessageAt": 0
}
}
}
renameCopilotSession(
id: ID!
title: String!
): CopilotSessionSummary!
Arguments
renameCopilotSession.id ● ID! non-null scalar
The ID of the Copilot session.
renameCopilotSession.title ● String! non-null scalar
The new title.
Type
CopilotSessionSummary object
One row in the user's own conversation list.