Create a capability configuration
const url = 'https://api.adversarial.com/api/v1/integrations/example/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/configs';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"capability":"RISK_REGISTER","config":{},"display_name":"example","enabled":true}'};
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/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/configs \ --header 'Content-Type: application/json' \ --data '{ "capability": "RISK_REGISTER", "config": {}, "display_name": "example", "enabled": true }'Adds a named configuration of one capability under the installation. Two configurations of one capability under one installation cannot have the same name.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Provider slug
Installation identifier
Request Bodyrequired
Section titled “Request Bodyrequired”A new capability configuration under an installation.
object
Capability selected from the provider catalog.
Complete configuration value. Omitted means an empty configuration.
object
Instance name shown wherever this configuration appears. Unique among the capability’s configurations under one installation.
Whether this configuration can execute.
Responses
Section titled “Responses”Capability configuration created
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.
Example
{ "capability": "RISK_REGISTER"}Unsupported capability or invalid configuration
Unknown provider or installation
Configuration name is already in use