deleteCopilotPromptTemplate
Requires permission settings:organization:update.
Delete a saved prompt, returning the organization's remaining list. Deleting one that is already gone is not an error.
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 DeleteCopilotPromptTemplate($slug: String!) {
deleteCopilotPromptTemplate(slug: $slug) {
title
body
slug
}
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "mutation DeleteCopilotPromptTemplate($slug: String!) {\n deleteCopilotPromptTemplate(slug: $slug) {\n title\n body\n slug\n }\n}",
"variables": {
"slug": "string"
}
}
EOF
Variables:
{
"slug": "string"
}
Response:
{
"data": {
"deleteCopilotPromptTemplate": [
{
"title": "string",
"body": "string",
"slug": "string"
}
]
}
}
deleteCopilotPromptTemplate(
slug: String!
): [CopilotPromptTemplateType!]!
Arguments
deleteCopilotPromptTemplate.slug ● String! non-null scalar
The slug of the template.
Type
CopilotPromptTemplateType object
A saved prompt: work a workspace does every week, written down once. It is inserted as the seller's own message and nothing more.