Replace a detection's exemptions on a profile
Replace the whole exemption set for one detection on one profile. The body is the set you want to end up with, so read the current set, change it, and send all of it back. An empty array clears the set; there is no endpoint for a single entry and no exemption ID.
Send the version from the read as If-Match. The write is then rejected with a 412 (VersionMismatch) if the detection’s configuration changed in the meantime, so re-read and retry. Without the header the write applies unconditionally: a concurrent change is overwritten and no 412 is returned. Send it whenever the read returned a version, and omit it only when version was null, since there is then no stored configuration to match against.
version covers the detection’s whole configuration, not just its exemptions, so a change to its severity or parameters also invalidates it. Saving the profile in the Plerion platform rewrites every detection configured on it, which invalidates any version held against that profile.
A non-empty set is rejected with a 400 when the detection does not accept exemptions (ExemptionsNotSupported) or when an entry’s type is outside the detection’s supportedExemptionTypes (UnsupportedExemptionType). Both would otherwise be stored and then never take effect. Clearing is always allowed, whatever the detection supports today.
Only the exemptions change. A severity override or parameter set on the same detection is left alone, and exemptions written here apply to findings Plerion has already stored rather than waiting for the next scan.
Authorizations
Bearer API Key. For example, "Bearer {Tenant API Key}"
Headers
Bearer API Key. For example, "Bearer {Tenant API Key}"
application/json
The version returned by the read, echoed back unchanged. When supplied, the write is rejected with a 412 unless it still matches the stored value. When omitted, the write applies unconditionally. Omit it only when the detection has no stored configuration on the profile yet.
Path Parameters
Profile ID, or the literal string default for the tenant's default profile. default covers only the integrations that have not been given a profile of their own, so on a tenant with more than one profile it does not reach the rest. Use List profiles to get the IDs.
"default"
Detection ID. A finding reports the detection that produced it in its detectionId field.
"PLERION-AWS-16"
Body
The complete exemption set for the detection. Send an empty array to clear it.
One exemption rule to write. The type decides which other fields apply, and which types a detection accepts is reported by supportedExemptionTypes on the read. The read returns StoredDetectionExemption, which is looser.
- Option 1
- Option 2
- Option 3
- Option 4
- Option 5
Response
Exemptions replaced
The exemptions configured for one detection on one profile.