Skip to main content
Create, edit and delete Prompt Hub prompts, add versions and manage labels. For task-oriented walkthroughs of these operations, see the Prompt guide. Every mutation below is sent as a POST to https://app.arize.com/graphql with an x-api-key header; see Forming calls.

Mutations in this page

Reference

createPrompt

Create a new prompt createPrompt(input: CreatePromptMutationInput!): CreatePromptMutationPayload

Arguments

CreatePromptMutationInput!
required

Returns

Prompt!

Example

Only required input fields are shown. Replace <ID> and <string> placeholders with real values; the object graph page shows how to look IDs up.

editPrompt

Edit an existing prompt editPrompt(input: EditPromptMutationInput!): EditPromptMutationPayload

Arguments

EditPromptMutationInput!
required

Returns

Prompt!

Example

Only required input fields are shown. Replace <ID> and <string> placeholders with real values; the object graph page shows how to look IDs up.

deletePrompt

Delete an existing prompt deletePrompt(input: DeletePromptMutationInput!): DeletePromptMutationPayload

Arguments

DeletePromptMutationInput!
required

Returns

Boolean!
Indicates whether the prompt was deleted

Example

Only required input fields are shown. Replace <ID> and <string> placeholders with real values; the object graph page shows how to look IDs up.

createPromptVersion

Create a new prompt version createPromptVersion(input: CreatePromptVersionMutationInput!): CreatePromptVersionMutationPayload

Arguments

CreatePromptVersionMutationInput!
required

Returns

PromptVersion!

Example

Only required input fields are shown. Replace <ID> and <string> placeholders with real values; the object graph page shows how to look IDs up.

updatePromptVersionLabel

update prompt version label. updatePromptVersionLabel(input: updatePromptVersionLabelMutationInput!): updatePromptVersionLabelMutationPayload

Arguments

updatePromptVersionLabelMutationInput!
required

Returns

Prompt!

Example

Only required input fields are shown. Replace <ID> and <string> placeholders with real values; the object graph page shows how to look IDs up.

removePromptVersionLabel

Remove a label from a prompt version removePromptVersionLabel(input: removePromptVersionLabelMutationInput!): removePromptVersionLabelMutationPayload

Arguments

removePromptVersionLabelMutationInput!
required

Returns

Prompt!

Example

Only required input fields are shown. Replace <ID> and <string> placeholders with real values; the object graph page shows how to look IDs up.