Skip to content
gist.link ↗

upsertPromptTemplate

Mutation Intelligence API — POST https://intelligence.api.gist.link/graphql

ROLE_ADMIN.

intelligence:mutation:upsertPromptTemplate

The calling IAM key must hold this permission (or a wildcard that covers it: intelligence:mutation:* or intelligence:*) and the access token must have been minted with audience=intelligence. See Permissions.

type Mutation {
upsertPromptTemplate(key: String!, systemPrompt: String!): PromptTemplate!
}
Argument Type Required Description
key String! Yes —
systemPrompt String! Yes —

PromptTemplate! — see the Intelligence types reference.

Terminal window
curl https://intelligence.api.gist.link/graphql \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d @- <<'JSON'
{
"query": "mutation UpsertPromptTemplate($key: String!, $systemPrompt: String!) { upsertPromptTemplate(key: $key, systemPrompt: $systemPrompt) { id key created_at updated_at } }",
"variables": {
"key": "example",
"systemPrompt": "example"
}
}
JSON