cURL
curl --request DELETE \ --url https://{appid}.api-{region}.cometchat.io/v3/ai-agents/agent-builder/agents/variables/custom/{variableId} \ --header 'apikey: <api-key>'
{ "success": true, "message": "Variable deleted successfully" }
Deletes a custom variable by its ID.
Impact: Any agent instructions referencing this variable will no longer resolve its value.
API Key (i.e. Rest API Key from the Dashboard).
Variable ID to delete
Custom variable deleted successfully
Indicates whether the operation was successful
true
Human-readable result message
"Operation completed successfully"
Was this page helpful?
Contact support