Approve an exception request
Adds the exception, which may differ from the proposal, and closes the request as approved. Pending requests asking for the same rule and selector are approved along with it. Needs the same permissions as adding the exception directly. Denied requests can be approved too.
AuthorizationBearer <token>A personal or service access token, sent as Authorization: Bearer <token>. See access tokens.
namespace*stringThe namespace id.
firewall*stringThe firewall id.
id*stringThe exception request id.
application/json- body
The approval of an exception request.
exception*The exception to add: the proposal as-is or changed. Its id is required and must not already exist on the firewall.
comment?stringAn optional comment, shown to the requester.
The approved request and the added exception.
application/json- response
The result of approving an exception request.
request*The approved request.
exception*The exception the requester asks for. The approver may change it; the exception actually added is referenced by exceptionId.
alsoApproved*array<string>The ids of identical pending requests approved along with it.
curl -X POST 'https://eu-sov-1.bytesafecloud.eu/v1/my-namespace-id/config/my-firewall-id/exception-requests/exr-01JZ8Q2V6R9X3T5W7Y0A2C4E6G/approve' \ -H 'Content-Type: application/json' \ -d '{ "comment": "Approved for 90 days.", "exception": { "id": "allow-left-pad", "log": true, "reason": "evaluating_component", "rule": "block-malware", "selector": { "packageName": "left-pad", "version": "1.3.0" } }}'{ "request": { "id": "exr-01JZ8Q2V6R9X3T5W7Y0A2C4E6G", "firewallId": "npm-main", "status": "approved", "proposedException": { "id": "allow-left-pad", "rule": "block-malware", "selector": { "packageName": "left-pad", "version": "1.3.0" }, "log": true, "expires": "2026-05-31T09:30:00Z", "reason": "evaluating_component" }, "justification": "Needed for the build until we migrate off left-pad.", "requestedBy": "user_2a9f", "requestedAt": "2026-03-02T09:30:00Z", "decidedBy": "user_7c1d", "decidedAt": "2026-03-02T11:30:00Z", "decisionComment": "Approved for 90 days.", "exceptionId": "allow-left-pad", "updatedAt": "2026-03-02T11:30:00Z", "canApprove": false, "canDeny": false, "canWithdraw": false }, "exception": { "id": "allow-left-pad", "rule": "block-malware", "selector": { "packageName": "left-pad", "version": "1.3.0" }, "log": true, "expires": "2026-05-31T09:30:00Z", "reason": "evaluating_component", "notes": "Reviewed by the security team." }, "alsoApproved": [ "exr-01JZ8Q3B1D4F6H8K0M2P4R6T8V" ]}