cURL
curl --request PATCH \ --url https://api.leen.dev/v1/provisioning/organizations/{organization_id}/connections/{connection_id} \ --header 'Content-Type: application/json' \ --header 'X-API-KEY: <api-key>' \ --data '{ "credentials": "<any>", "identifier": "<string>", "state": "PENDING" }'
{ "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "vendor": "<string>", "is_active": true, "refresh_interval_secs": 123, "timeout_secs": 123, "organization_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "oauth2_authorize_url": "<string>", "identifier": "<string>", "state": "PENDING", "created_at": "2023-11-07T05:31:56Z", "updated_at": "2023-11-07T05:31:56Z", "health": { "name": "HEALTHY", "status": "HEALTHY", "description": "<string>", "resolution_owner": "LEEN", "details": [ { "data_export_type": "alerts", "endpoint": "<string>" } ] } }
Connection credentials
Show child attributes
An optional identifier for the connection, you can use this to reference the connection in your own system
PENDING
ACTIVE
PAUSED
DELETED
Successful Response