curl --request PATCH \ --url https://api.eigi.ai/v1/public/prompts/{prompt_name} \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <api-key>' \ --data '{ "prompt_content": "You are an expert customer support agent with 10 years of experience. Always be empathetic and solution-oriented."}'
Update a prompt by creating a new version with updated content
PATCH
/
v1
/
public
/
prompts
/
{prompt_name}
Update Prompt
Copy
curl --request PATCH \ --url https://api.eigi.ai/v1/public/prompts/{prompt_name} \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <api-key>' \ --data '{ "prompt_content": "You are an expert customer support agent with 10 years of experience. Always be empathetic and solution-oriented."}'
Update an existing prompt by creating a new version. The version number is automatically incremented. Previous versions are preserved and can be retrieved using the Get Prompt Versions endpoint.