Skip to main content
DELETE
Dismiss RLS recommendation

Authorizations

Authorization
string
header
required

Personal access token, sent as Authorization: Bearer <token>.

Path Parameters

entity_name
string
required

Entity whose recommendation to remove, as returned in rls_recommendations by Get security scan. It contains only letters, digits, and underscores.

app_id
string
required

ID of the app.

Body

application/json
applied_rule
object | null

The rules you applied to the entity, keyed by operation in the same format as the entity's rls. Send it to record the call as a fix. Leave it out, or send null or an empty object, to record a plain dismissal. Keys other than the five operations are rejected.

A filter can use only the query operators $eq, $ne, $gt, $gte, $lt, $lte, $in, $nin, $and, $or, $not, $nor, $exists, $type, $all, $elemMatch, $size, $regex, $options, $text, $search, $near, $nearSphere, $geoIntersects, and $geoWithin. $and, $or, and $nor take a list. $in, $nin, and $all take a list or a template string such as {{user.data.departments}}. user_condition takes an object.

The whole value can be up to 20,000 bytes as compact JSON, nest up to 8 levels deep, and hold up to 200 keys in total. Lists can hold up to 50 items, keys up to 200 characters, and strings up to 2,000 characters. The keys __proto__, constructor, and prototype aren't allowed.

Example:

Response

The recommendation left the scan result.

Confirms that the recommendation left the scan result.

status
string
required

Always ok. The recommendation is no longer in the scan result.

Example:

"ok"