cURL
curl --request POST \ --url https://api.aivra.cloud/v1/integration/prompts/{prompt_id}/set-active \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <api-key>' \ --data ' { "environment": "<string>", "version_id": "<string>" } '
{ "updated": true }
prompt_id
environment
production
staging
version_id
{"updated": true}
curl -X POST "${BASE_URL}/v1/integration/prompts/pr_1/set-active" \ -H "X-API-Key: ak_xxxxxxxxx" \ -H "Content-Type: application/json" \ -d '{ "environment": "production", "version_id": "ver_12" }'
OK
Was this page helpful?