cURL
curl --request PUT \ --url https://api.dualship.run/api/v1/ai/providers/{id} \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "api_key": "<string>", "base_url": "<string>", "is_default": true, "max_retries": 5, "name": "<string>", "priority": 1, "status": "active", "timeout_seconds": 150 } '
{ "base_url": "<string>", "created_at": "<string>", "id": "<string>", "is_default": true, "max_retries": 123, "models": [ "<string>" ], "name": "<string>", "priority": 123, "provider_type": "<string>", "status": "<string>", "timeout_seconds": 123, "updated_at": "<string>" }
Update an existing AI provider configuration
JWT Bearer token authentication
Provider ID
Provider details
10
0 <= x <= 10
1 - 100
x >= 0
active
inactive
1 <= x <= 300
Provider updated successfully
Was this page helpful?