Revert Prompt
Revert a prompt to a previous version number. Creates a new version with the old content.
Request
curl -X POST "https://platform.chanl.ai/api/v1/prompts/{promptId}/revert" \
-H "X-API-Key: chanl_key_..." \
-H "Content-Type: application/json" \
-d '{ "version": 2 }'const { data } = await chanl.prompts.revert(promptId, { version: 2 });