Zatomic API

Updating a prompt

This endpoint allows you to update either the name of the prompt, its use case, or both. If you need to update the contents of a prompt, that can be done by updating a prompt version.

A successful call returns a response that contains the updated prompt object.

Endpoint
PATCH https://api.zatomic.ai/v1/prompts/{promptId}

// Example
PATCH https://api.zatomic.ai/v1/prompts/prm_2qRzu8geIvfudcJTwP0pur4TbMJ

Request Properties
name
string, optional
Name of the prompt.
use_case
string, optional
Use case description for the prompt.
Request Body
{
   "name": "Prompt name",
   "use_case": "Use case description."
}