cURL
curl --request PUT \ --url https://api.trymaitai.ai/api/v1/agents/{agent_id}/releases/{name} \ --header 'Content-Type: application/json' \ --header 'X-Maitai-Api-Key: <api-key>' \ --data ' { "version": "1.2.0", "is_default": true } '
{ "data": { "name": "production", "agent_id": 101, "version": "1.2.0", "is_default": true } }
Create or update a named release, optionally pinning it to a version.
Your Maitai API key from the Portal.
Upsert agent release.
A named pointer (e.g. production, staging) that maps to a specific agent version.
production
staging
Show child attributes
Was this page helpful?