Zatomic API

Update 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.

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

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

Endpoint Request

Request Properties
name
string, optional
Name of the prompt.
use_case
string, optional
Use case description for the prompt.
project_id
string, optional
The ID of the project that contains the prompt. Set to empty string ("") to remove prompt from project.
Request Body
{
   "name": "Prompt name",
   "use_case": "Use case description."
   "project_id": "prj_32hbc9w4iVeyUZ1iRvjZYUrvS73"
}

Endpoint Response

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

HTTP Status Codes
200 OK The prompt was updated.
404 Not Found The prompt didn't exist.
500 Internal Server Error Something went wrong on Zatomic's end.