PUT
/v2/projects/{projectId}/prompts/{promptId}Update a project prompt
Replaces a project's prompt configuration with the supplied values. Provide name and providerName; you can also set a template and the basicPromptOptions to use for the prompt.
promptIdintegerrequired
The integer identifier of the prompt to update.
projectIdintegerrequired
The integer identifier of the project containing the prompt.
Prompt configuration values to apply. name and providerName are required.
basicPromptOptionsarray<string>optional
Prompt context options to include: KEY_NAME, KEY_DESCRIPTION, KEY_CONTEXT, PROJECT_DESCRIPTION, LANGUAGE_NOTES, TM_SUGGESTIONS, SCREENSHOT, or GLOSSARY.
namestringrequired
The name of the prompt.
providerNamestringrequired
The name of the provider to use.
templatestringoptional
The prompt template.
200Returns the updated prompt, including its `id`, `name`, `projectId`, and `providerName`, with any supplied template and basic prompt options.
basicPromptOptionsarray<string>optional
idintegerrequired
namestringrequired
projectIdintegerrequired
providerNamestringrequired
templatestringoptional
400Returned when a required field is missing or a request value is invalid.
codestringrequired
paramsarray<object>optional
401Returned when the request is not authenticated.
codestringrequired
paramsarray<object>optional
403Returned when the authenticated user does not have permission to update the prompt.
codestringrequired
paramsarray<object>optional
404Returned when the project or prompt cannot be found.
codestringrequired
paramsarray<object>optional
Error handling
A 400 is returned when required fields are missing or a value is invalid; name and providerName are required, and each basicPromptOptions value must be one of the supported options. A 401 is returned when the request is unauthenticated, and a 403 is returned when the authenticated user cannot update the prompt. A 404 is returned when the project or prompt cannot be found; the promptId and projectId path parameters must identify the prompt and its project.