Update one capability configuration
const url = 'https://api.adversarial.com/api/v1/integrations/example/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/configs/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0';const options = { method: 'PATCH', headers: {'Content-Type': 'application/json'}, body: '{"config":{},"display_name":null,"enabled":null,"installation_id":null}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://api.adversarial.com/api/v1/integrations/example/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/configs/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \ --header 'Content-Type: application/json' \ --data '{ "config": {}, "display_name": null, "enabled": null, "installation_id": null }'Omitted fields keep their stored value.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Provider slug
Installation identifier
Configuration identifier
Request Bodyrequired
Section titled “Request Bodyrequired”Changes to an existing capability configuration. Omitted fields keep their value.
object
Complete replacement configuration value.
object
Replacement instance name.
Whether this configuration can execute.
Replacement installation. Must name a sibling installation of the same provider in the same organization; the configuration runs with that installation’s credential afterwards. A configuration that has linked tickets does not move.
Responses
Section titled “Responses”Updated capability configuration
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"}Invalid capability configuration
Unknown provider, installation, or configuration
Configuration name is already in use, or a move of a configuration that has linked tickets