Skip to main content

Update Integration

Update an existing integration. Users can only update their own integrations.
path
string
required
Integration type

Request Body

object
required
Integration object with fields to update
object
Integration-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

status
object
Response status information
code
integer
HTTP status code (200)
message
string
Status message
data
object
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

401
object
Unauthorized - Invalid or missing authentication
404
object
Integration not found
422
object
Validation error - Invalid request body