Update Integration
Update an existing integration. Users can only update their own integrations.
Request Body
Integration object with fields to updateIntegration-specific configuration
curl -X PUT "https://api.example.com/api/v1/integrations/elevenlabs" \
-H "X-API-Key: your-api-key-here" \
-H "Content-Type: application/json" \
-d '{
"integration": {
"config": {
"api_key": "sk_new_elevenlabs_key"
}
}
}'
Response
Response status information
Updated integration object
{
"status": {
"code": 200,
"message": "Integration updated successfully"
},
"data": {
"id": 1,
"integration_type": "elevenlabs",
"config": {
"api_key": "sk_***"
},
"schema": {
"required": ["api_key"],
"optional": [],
"fields": {
"api_key": {
"type": "string",
"description": "ElevenLabs API key"
}
}
},
"user_id": 1,
"user_email": "[email protected]",
"created_at": "2024-01-10T08:00:00Z",
"updated_at": "2024-01-15T11:00:00Z"
}
}
Error Responses
Unauthorized - Invalid or missing authentication
Validation error - Invalid request body