> ## Documentation Index
> Fetch the complete documentation index at: https://docs.base44.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Dismiss RLS recommendation

> <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](/api-reference/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](/api-reference/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.



## OpenAPI

````yaml /developers/references/app-management/app-management-openapi.json delete /api/apps/{app_id}/security/scan/rls-recommendation/{entity_name}
openapi: 3.1.0
info:
  title: Base44 App Management API
  version: 1.0.0
servers:
  - url: https://app.base44.com
security:
  - PersonalAccessTokenAuth: []
paths:
  /api/apps/{app_id}/security/scan/rls-recommendation/{entity_name}:
    delete:
      summary: Dismiss RLS recommendation
      description: >-
        <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](/api-reference/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](/api-reference/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.
      operationId: >-
        dismiss_rls_recommendation_api_apps__app_id__security_scan_rls_recommendation__entity_name__delete
      parameters:
        - name: entity_name
          in: path
          required: true
          schema:
            type: string
            description: >-
              Entity whose recommendation to remove, as returned in
              `rls_recommendations` by [Get security
              scan](/api-reference/get-security-scan). It contains only letters,
              digits, and underscores.
            title: Entity Name
          description: >-
            Entity whose recommendation to remove, as returned in
            `rls_recommendations` by [Get security
            scan](/api-reference/get-security-scan). It contains only letters,
            digits, and underscores.
          example: Order
        - name: app_id
          in: path
          required: true
          schema:
            type: string
            description: ID of the app.
            title: App Id
          description: ID of the app.
          example: 6820f3a4e7b91d003c45a1f2
      requestBody:
        content:
          application/json:
            schema:
              title: DismissRlsRecommendation
              type: object
              properties:
                applied_rule:
                  anyOf:
                    - type: object
                      properties:
                        create:
                          anyOf:
                            - type: boolean
                            - additionalProperties: true
                              type: object
                            - type: 'null'
                          description: >-
                            Rule you applied for creating a record. Send `true`
                            to allow it for everyone, `false` to block it
                            outright, `null` to leave it unset, or an object as
                            a filter matched against the record and the
                            signed-in app user.
                          example: true
                        read:
                          anyOf:
                            - type: boolean
                            - additionalProperties: true
                              type: object
                            - type: 'null'
                          description: >-
                            Rule you applied for reading records. Send `true` to
                            allow it for everyone, `false` to block it outright,
                            `null` to leave it unset, or an object as a filter
                            matched against the record and the signed-in app
                            user.
                          example:
                            created_by: '{{user.email}}'
                        update:
                          anyOf:
                            - type: boolean
                            - additionalProperties: true
                              type: object
                            - type: 'null'
                          description: >-
                            Rule you applied for updating a record. Send `true`
                            to allow it for everyone, `false` to block it
                            outright, `null` to leave it unset, or an object as
                            a filter matched against the record and the
                            signed-in app user.
                          example:
                            created_by: '{{user.email}}'
                        delete:
                          anyOf:
                            - type: boolean
                            - additionalProperties: true
                              type: object
                            - type: 'null'
                          description: >-
                            Rule you applied for deleting a record. Send `true`
                            to allow it for everyone, `false` to block it
                            outright, `null` to leave it unset, or an object as
                            a filter matched against the record and the
                            signed-in app user.
                          example:
                            $or:
                              - created_by: '{{user.email}}'
                              - user_condition:
                                  role: admin
                        write:
                          anyOf:
                            - type: boolean
                            - additionalProperties: true
                              type: object
                            - type: 'null'
                          description: >-
                            Legacy rule for updating and deleting, used for
                            whichever of the two has no rule of its own. Send
                            `true` to allow it for everyone, `false` to block it
                            outright, `null` to leave it unset, or an object as
                            a filter matched against the record and the
                            signed-in app user.
                          example:
                            created_by: '{{user.email}}'
                    - type: 'null'
                  description: >-
                    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`. The
                    operators `$and`, `$or`, and `$nor` take a list. The
                    operators `$in`, `$nin`, and `$all` take a list or a
                    template string such as `{{user.data.departments}}`. The
                    `user_condition` key 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:
                    create: true
                    read:
                      created_by: '{{user.email}}'
                    update:
                      created_by: '{{user.email}}'
                    delete:
                      $or:
                        - created_by: '{{user.email}}'
                        - user_condition:
                            role: admin
            example:
              applied_rule:
                create: true
                read:
                  created_by: '{{user.email}}'
                update:
                  created_by: '{{user.email}}'
                delete:
                  $or:
                    - created_by: '{{user.email}}'
                    - user_condition:
                        role: admin
        required: false
      responses:
        '200':
          description: The recommendation left the scan result.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SecurityRlsRecommendationDismissed'
        '400':
          description: The `entity_name` isn't a valid entity name.
        '401':
          description: Missing or invalid credentials.
        '403':
          description: >-
            You don't have editor access to this app, or your token or key is
            read-only.
        '404':
          description: App not found.
        '409':
          description: >-
            The latest scan result has no recommendation for the entity, so
            nothing was recorded. The detail is `RLS recommendation was not
            dismissed. Refresh scan results and try again.` This happens when:

            - The app has no scan result.

            - The scan result came from an earlier version of the scanner.

            - The recommendation was already resolved, or a newer scan replaced
            it.


            Read the result again with [Get security
            scan](/api-reference/get-security-scan) before you retry.
        '422':
          description: >-
            The body isn't a JSON object, has fields other than `applied_rule`,
            or `applied_rule` breaks one of the limits described on the field.
        '429':
          description: >-
            Rate limit exceeded. The base limit is 30 requests per minute for
            each app, shared by every personal access token in the workspace.
            See [Rate
            limits](/developers/references/apps-api/get-started/rate-limits) for
            the multiplier your plan gets.
        '503':
          description: >-
            Database temporarily unavailable (`database_unavailable`): the data
            cluster did not answer in time. Retry after the `Retry-After`
            seconds.
          headers:
            Retry-After:
              description: Seconds to wait before retrying.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StandardErrorEnvelope'
              examples:
                database_unavailable:
                  summary: database_unavailable
                  value:
                    error:
                      code: database_unavailable
                      message: Database temporarily unavailable, please retry
                      details: {}
      security:
        - PersonalAccessTokenAuth:
            - full_access
        - WorkspaceApiKeyAuth:
            - full_access
        - WorkspaceApiKeyBearerAuth:
            - full_access
components:
  schemas:
    SecurityRlsRecommendationDismissed:
      properties:
        status:
          type: string
          title: Status
          description: Always `ok`. The recommendation is no longer in the scan result.
          example: ok
      type: object
      required:
        - status
      title: SecurityRlsRecommendationDismissed
    StandardErrorEnvelope:
      properties:
        error:
          $ref: '#/components/schemas/StandardError'
          description: What went wrong.
      type: object
      required:
        - error
      title: StandardErrorEnvelope
      description: The error body returned in the standard envelope.
    StandardError:
      properties:
        code:
          type: string
          title: Code
          description: >-
            Stable machine-readable cause of the failure. Match on this, not on
            `message`.
          example: not_found
        message:
          type: string
          title: Message
          description: Human-readable explanation. It isn't a stable contract.
          example: App not found
        details:
          additionalProperties: true
          type: object
          title: Details
          description: >-
            Structured context for the failure, or an empty object when there's
            none.
          example: {}
      type: object
      required:
        - code
        - message
      title: StandardError
  securitySchemes:
    PersonalAccessTokenAuth:
      type: http
      scheme: bearer
      description: >-
        Personal access token, sent as `Authorization: Bearer <token>`. Each
        operation lists the permission it needs: `read_only` or `full_access`. A
        full-access token can call every operation. A read-only token can call
        only the operations that list `read_only`; anything else returns 403
        `read_only_credential_route_not_allowed`.
    WorkspaceApiKeyAuth:
      type: apiKey
      in: header
      name: api_key
      description: >-
        Workspace API key, sent as `api_key: <key>`. Each operation that accepts
        one lists what the key needs: a permission, `read_only` or
        `full_access`, like a personal access token, or a scope. A key without
        the scope gets 403 `workspace_api_key_scope_required`.
    WorkspaceApiKeyBearerAuth:
      type: http
      scheme: bearer
      description: >-
        Workspace API key, sent as `Authorization: Bearer <key>`. Accepted
        wherever `api_key` is, with the same permission.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.