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

# Reset a store's precedence settings

> Reverts this store to its shipped default precedence and returns the new version. Reverting IS a precedence change: it bumps the version and recomputes every record's resolved view in the background, exactly as setting one does. Requires an admin role.



## OpenAPI

````yaml /openapi.json delete /data/stores/{store}/precedence
openapi: 3.1.0
info:
  title: GetDialed API
  version: 0.1.0
servers:
  - url: https://api.getdialed.ai/v1
    description: Production
security: []
paths:
  /data/stores/{store}/precedence:
    delete:
      tags:
        - data-stores
      summary: Reset a store's precedence settings
      description: >-
        Reverts this store to its shipped default precedence and returns the new
        version. Reverting IS a precedence change: it bumps the version and
        recomputes every record's resolved view in the background, exactly as
        setting one does. Requires an admin role.
      operationId: delete_store_precedence_data_stores__store__precedence_delete
      parameters:
        - name: store
          in: path
          required: true
          schema:
            type: string
            title: Store
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PrecedenceResponse'
        '401':
          description: Missing or invalid authentication
          content:
            application/json:
              example:
                detail: Authentication required
        '403':
          description: Admin role required
          content:
            application/json:
              example:
                detail: Admin role required
        '404':
          description: Not found — also returned on cross-tenant access (never 403)
          content:
            application/json:
              example:
                detail: Store not found
        '422':
          description: Validation error (see body for field details)
          content:
            application/json:
              example:
                detail: Validation error
        '429':
          description: Rate limit exceeded — retry after the Retry-After header
          content:
            application/json:
              example:
                detail: Rate limit exceeded
      security:
        - APIKeyHeader: []
        - HTTPBearer: []
components:
  schemas:
    PrecedenceResponse:
      properties:
        store:
          type: string
          title: Store
          description: The store these settings belong to, by its URL slug.
        default_order:
          items:
            type: string
          type: array
          title: Default Order
          description: The order every field resolves by unless it is overridden.
        field_overrides:
          additionalProperties:
            items:
              type: string
            type: array
          type: object
          title: Field Overrides
          description: >-
            Per-field orders that depart from the default. A field absent here
            uses `default_order`.
        config_version:
          type: integer
          title: Config Version
          description: >-
            Version of these settings. It increases on every change, including a
            change that reverts to the defaults. Every record records the
            version its resolved view was computed with, which is what makes a
            view left behind by a precedence change detectable — and what lets a
            resolved value be explained after the fact.
        updated_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Updated At
          description: >-
            When these settings last changed. Null means they have never been
            changed and are the store's shipped defaults.
        recompute:
          $ref: '#/components/schemas/StoreRecomputeResponse'
      type: object
      required:
        - store
        - default_order
        - config_version
        - recompute
      title: PrecedenceResponse
      description: >-
        One store's precedence settings, with their version and recompute state.


        This is the standalone precedence resource. The store detail response
        carries

        the same order and overrides as a nested fragment; this one adds the
        version

        stamp, when it last moved, and how much of the store is still catching
        up.
      example:
        config_version: 2
        default_order:
          - manual
          - csv_file
          - crm
          - five9_report
        field_overrides:
          owner_team:
            - manual
            - crm
        recompute:
          pending: 4231
        store: company-phone-numbers
        updated_at: '2026-08-20T12:00:00Z'
    StoreRecomputeResponse:
      properties:
        pending:
          type: integer
          title: Pending
          description: >-
            How many records still carry a resolved view computed with an older
            precedence version. Zero means every record is current.
      type: object
      required:
        - pending
      title: StoreRecomputeResponse
      description: >-
        Whether every record's resolved view reflects the current precedence.


        Changing precedence invalidates the resolved views computed under the
        old

        settings, and they are recomputed in the background. While that is
        running,

        bulk queries legitimately mix records resolved under the old precedence
        with

        records resolved under the new one. `pending` reaching zero is how you
        know

        the window has closed.
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: X-API-Key
    HTTPBearer:
      type: http
      scheme: bearer
      bearerFormat: JWT

````