Start typing to search.

API Reference

Update a connector

View Markdown

Update a connector

PUT /api/connectors/{id}

Update a connector

Operation ID: updateConnector

Authentication

Option 1

  • BearerAuth (http bearer) API key token. Create via POST /api/api-keys. Format: envoy_<hex>

Option 2

  • CookieAuth (apiKey) Session cookie set after login + TOTP verification

Path parameters

  • idinteger, required Resource ID

Request body

The request body is required.

application/json

  • Type: object
  • Properties:
    • name (string)
    • type (string)
    • config (object)
      • Additional properties: allowed
    • description (string)

Success responses

200

Connector updated

Content type: application/json

  • Reference: Connector
    • Type: object
    • Properties:
      • id (integer)
      • name (string)
      • type (string)
      • config (object) — Parsed connector configuration
      • description (string | null)
        • Nullable: yes
      • created_at (string)
        • Format: date-time
      • updated_at (string)
        • Format: date-time

Error responses

404

Resource not found

Content type: application/json

  • Reference: Error
    • Type: object
    • Properties:
      • error (string)
        • Example: NOT_FOUND
      • message (string)
        • Example: Resource not found

Example:

{
  "error": "NOT_FOUND",
  "message": "Resource not found"
}

Examples

cURL

curl --request PUT \
  --url 'https://your-envoy.example.com/api/connectors/YOUR_ID' \
  --header 'Authorization: Bearer $API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "string",
  "type": "string",
  "config": {},
  "description": "string"
}'

JavaScript (fetch)

const response = await fetch('https://your-envoy.example.com/api/connectors/YOUR_ID', {
  method: 'PUT',
  headers: {
    'Authorization': 'Bearer YOUR_API_KEY',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "name": "string",
    "type": "string",
    "config": {},
    "description": "string"
  }),
});
 
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = response.status === 204 ? null : await response.json();
console.log(data);