Update Enforcement Rule
PUT/code/api/v1/enforcement-rules
This API is used in order to Edit existing rules, main one, or exception. The main rule threshold behavior can be updated, but users cant apply it on specific repositories, change its name, change status to exception or delete it.
Request
- application/json
Body
required
- Array [
- ]
codeCategories objectrequired
IAC objectrequired
Possible values: [OFF
, INFO
, LOW
, MEDIUM
, HIGH
, CRITICAL
]
Possible values: [OFF
, INFO
, LOW
, MEDIUM
, HIGH
, CRITICAL
]
Possible values: [OFF
, INFO
, LOW
, MEDIUM
, HIGH
, CRITICAL
]
IMAGES objectrequired
Possible values: [OFF
, INFO
, LOW
, MEDIUM
, HIGH
, CRITICAL
]
Possible values: [OFF
, INFO
, LOW
, MEDIUM
, HIGH
, CRITICAL
]
Possible values: [OFF
, INFO
, LOW
, MEDIUM
, HIGH
, CRITICAL
]
OPEN_SOURCE objectrequired
Possible values: [OFF
, INFO
, LOW
, MEDIUM
, HIGH
, CRITICAL
]
Possible values: [OFF
, INFO
, LOW
, MEDIUM
, HIGH
, CRITICAL
]
Possible values: [OFF
, INFO
, LOW
, MEDIUM
, HIGH
, CRITICAL
]
SECRETS objectrequired
Possible values: [OFF
, INFO
, LOW
, MEDIUM
, HIGH
, CRITICAL
]
Possible values: [OFF
, INFO
, LOW
, MEDIUM
, HIGH
, CRITICAL
]
Possible values: [OFF
, INFO
, LOW
, MEDIUM
, HIGH
, CRITICAL
]
SUPPLY_CHAIN objectrequired
Possible values: [OFF
, INFO
, LOW
, MEDIUM
, HIGH
, CRITICAL
]
Possible values: [OFF
, INFO
, LOW
, MEDIUM
, HIGH
, CRITICAL
]
Possible values: [OFF
, INFO
, LOW
, MEDIUM
, HIGH
, CRITICAL
]
repositories object[]required
Responses
- 200
- 422
Edit rule
- application/json
- Schema
Schema
string
Request arguments validation error