Test a connection
Asks the provider whether it accepts the connection, and saves nothing. Refused with 400 saying what the provider answered. A test of a saved connection's unchanged settings records the answer on it.
Who may call it: An owner, security admin or admin of the organization. API keys: no.
sessiongamma.session_token<token>The session cookie a sign-in sets. Over HTTPS its name carries the __Host- prefix. Browsers send it on their own; other clients keep it from the sign-in response.
slug*stringThe organization's slug, as in its URL.
application/json- body
provider*string1 <= length <= 50name*string1 <= length <= 100config*The settings the provider's configFields name.
secret?The secrets the provider's secretFields name. On an update, fields left out or empty keep the saved ones โ unless config changed, which needs them again.
allows?|What projects may sync through it: for each entity that may, the widest way (bidirectional: both). An entity left out may not sync. Null: everything the provider can.
id?stringThe saved connection being edited, whose secrets it may reuse.
OK.
application/json- response
ok*booleancurl -X POST 'http://localhost:3000/api/organizations/string/connections/test' \ -H 'Content-Type: application/json' \ -d '{ "provider": "string", "name": "string", "config": { "property1": null, "property2": null }}'{ "ok": true}