Update connector

PATCH /api/connectors/{id}

Update connector by ID with the given data. This methods performs a partial update.

Path parameters

  • id string Required

    The unique identifier of the connector.

application/json

Body Required

  • config object

    The connector config object that will be passed to the connector. The config object should be compatible with the connector factory.

  • metadata object

    Custom connector metadata, will be used to overwrite the default connector metadata.

    Hide metadata attributes Show metadata attributes
  • Whether to sync user profile from the identity provider to Logto at each sign-in. If false, the user profile will only be synced when the user is created.

Responses

PATCH /api/connectors/{id}
curl \
 -X PATCH https://[tenant_id].logto.app/api/connectors/{id} \
 -H "Content-Type: application/json" \
 -d '{"config":{},"metadata":{"target":"string","name":{},"logo":"string","logoDark":"string"},"syncProfile":true}'
Request example
{
  "config": {},
  "metadata": {
    "target": "string",
    "name": {},
    "logo": "string",
    "logoDark": "string"
  },
  "syncProfile": true
}
Response examples (200)
{
  "id": "string",
  "syncProfile": true,
  "config": {},
  "metadata": {
    "target": "string",
    "name": {},
    "logo": "string",
    "logoDark": "string"
  },
  "connectorId": "string",
  "target": "string",
  "name": {},
  "description": {},
  "logo": "string",
  "logoDark": "string",
  "readme": "string",
  "configTemplate": "string",
  "formItems": [
    {
      "type": "string",
      "selectItems": [
        {
          "value": "string",
          "title": "string"
        }
      ],
      "key": "string",
      "label": "string",
      "placeholder": "string",
      "required": true,
      "showConditions": [
        {
          "targetKey": "string"
        }
      ],
      "description": "string",
      "tooltip": "string",
      "isConfidential": true
    }
  ],
  "platform": "Native",
  "isStandard": true,
  "type": "Email",
  "isDemo": true,
  "extraInfo": {
    "key": null
  },
  "usage": 42.0
}