Save a connection and its capability configurations atomically
const url = 'https://api.adversarial.com/api/v1/integrations/example/save';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"configs":[{"capability":"RISK_REGISTER","config":{},"config_id":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","display_name":"example","enabled":true}],"installation":{"auth_method":null,"connection":{},"credentials":{},"display_name":null},"installation_id":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.adversarial.com/api/v1/integrations/example/save \ --header 'Content-Type: application/json' \ --data '{ "configs": [ { "capability": "RISK_REGISTER", "config": {}, "config_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "display_name": "example", "enabled": true } ], "installation": { "auth_method": null, "connection": {}, "credentials": {}, "display_name": null }, "installation_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" }'Creates an installation when its identifier is omitted. Existing configurations are replaced by identifier; unlisted configurations remain. If any validation or write fails, none of the requested changes persist.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Provider slug
Request Bodyrequired
Section titled “Request Bodyrequired”Save a connection and its capability configurations atomically.
object
Configurations to create or replace. Unlisted configurations are retained.
One complete capability configuration in an atomic save.
object
Capability selected from the provider catalog. Must match an existing configuration.
Complete configuration value. Omitted means an empty configuration.
object
Existing configuration to replace. Omit to create a configuration.
Configuration name, unique within this installation and capability.
Whether this configuration can execute.
Connection changes. Creation requires name, authentication method, connection values, and credentials. Omit for a configuration-only save.
Existing installation to update. Omit to create an installation.
Responses
Section titled “Responses”Saved installation with all capability configurations
One installed provider connection.
object
Safe authentication error, cleared after successful recovery.
Time of the most recent authentication failure.
Sequential authentication failures since the last accepted provider request.
Selected authentication method.
Capability configurations owned by this installation.
One capability configuration under an installation.
object
Capability identifier.
Complete validated configuration value.
object
Creation time.
Name that tells sibling configurations of one capability apart under one installation.
Whether the platform can execute this configuration.
Configuration identifier.
Installation whose credential this configuration runs with.
Last update time.
Non-secret connection values.
object
Creation time.
Whether encrypted credentials are present.
Operator-chosen installation name, unique per organization and provider.
Installation identifier.
Service account the platform acts as for this installation.
Canonical provider identifier.
Current lifecycle status.
Last update time.
Example
{ "auth_method": "api_key", "configs": [ { "capability": "RISK_REGISTER" } ]}Invalid connection or capability configuration
Unknown provider, installation, or configuration
Concurrent change or a name already in use