Chanl

Update Prompt

Update a prompt. Changing content or variables creates a new version.

Request
curl -X PATCH "https://platform.chanl.ai/api/v1/prompts/{promptId}" \
  -H "X-API-Key: chanl_key_..." \
  -H "Content-Type: application/json" \
  -d '{ "content": "Updated instructions..." }'
const { data } = await chanl.prompts.update(promptId, {
  content: 'Updated instructions...',
});