cURL
curl --request PUT \ --url https://www.getsnippets.ai/api/prompts/snippet/variation \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "name": "<string>", "content": { "type": "plaintext", "content": "Hello, world!" } } '
200
Example
{ "success": true, "data": { "variationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a" }, "usage": { "remainingRequests": 123 }, "metadata": { "fieldsUpdated": {} }}
Updates a specific variation. API Cost: 1 request.
API key authentication using Bearer token. Include your API key in the Authorization header.
The ID of the variation to update
100
Show child attributes
Variation updated successfully
true