Dismiss RLS recommendation

Changed on

<Info>This API is in beta. Endpoints, fields, and behavior may still change, so avoid depending on it in production.</Info>

Removes one entity's row-level security recommendation from the app's latest security scan result. Get entity_name from rls_recommendations in Get security scan.

The call changes only the scan result, never the entity's rules. You can send it two ways:

  • Send applied_rule to record a fix. Apply the rules with Update entity schema first, because Base44 records the rules as you send them and doesn't check them against the entity.
  • Leave applied_rule out to dismiss the recommendation without recording a fix.

The next scan that checks row-level security judges every entity again, so a recommendation can come back if the entity's rules still need to change.

delete/api/apps/{app_id}/security/scan/rls-recommendation/{entity_name}

Request

  • Base URL: https://app.base44.com
  • URL: https://app.base44.com/api/apps/{app_id}/security/scan/rls-recommendation/{entity_name}
  • Auth: HTTP bearer

Path parameters

entity_namestring required

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

app_idstring required

ID of the app.

Request body

Example request

{
  "applied_rule": {
    "create": true,
    "read": {
      "created_by": "{{user.email}}"
    },
    "update": {
      "created_by": "{{user.email}}"
    },
    "delete": {
      "$or": [
        {
          "created_by": "{{user.email}}"
        },
        {
          "user_condition": {
            "role": "admin"
          }
        }
      ]
    }
  }
}

Response

The recommendation left the scan result.

statusstring required

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

Example response

{
  "status": "ok"
}

Changes