Skip to main content

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:

mutation DeleteCopilotPromptTemplate($slug: String!) {
deleteCopilotPromptTemplate(slug: $slug) {
title
body
slug
}
}

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.