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

# Release a refresh request

> A leased request the worker cannot answer: the object is not at the source (`not_found`) or the fetch failed (`failed`). The request leaves at once and its paid call counts; a watch revalidation falls back to the type's `refetch.unconfirmed_watch`.



## OpenAPI

````yaml openapi/en/cell.json POST /v1/state/refresh-requests/{request_id}/release
openapi: 3.1.0
info:
  title: Niadra data API
  version: '1'
  description: >-
    Writing, context, history, objects, identity, privacy and governance of one
    space. Every space has a stable address, with the space and the region in
    its name.
servers:
  - url: https://{space}.{region}.api.niadra.com
    variables:
      space:
        default: acme-prod
        description: The space, which comes in the source key.
      region:
        default: us-east-2
        description: The region of the space, which also comes in the key.
security: []
paths:
  /v1/state/refresh-requests/{request_id}/release:
    post:
      tags:
        - state
      summary: Release a refresh request
      description: >-
        A leased request the worker cannot answer, the object not at the source
        or the fetch failed: it leaves

        now, its paid call counted. A request it can answer it answers by
        pushing the object with the request's

        `request_id`.


        **Authentication.** Source key: `Authorization: Bearer nia_sk_...`.
        Required scope: `state:push`. It answers only in a space with the
        `state` feature on (the `features` document); in a space without it,
        404.
      operationId: >-
        release_refresh_request_v1_state_refresh_requests__request_id__release_post
      parameters:
        - in: path
          name: request_id
          required: true
          schema:
            maxLength: 64
            title: Request Id
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RefreshRelease'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RefreshReleased'
          description: The released request and the reason it carried.
        '422':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
          description: The request does not match the contract.
      security:
        - sourceKey: []
components:
  schemas:
    RefreshRelease:
      additionalProperties: false
      description: >-
        A leased request the resolver worker cannot answer: the object is not at
        the source, or fetching it

        failed. The request leaves at once and its paid call counts; a
        `watch_revalidation` falls back to the

        type's `unconfirmed_watch`.
      properties:
        outcome:
          enum:
            - not_found
            - failed
          title: Outcome
          type: string
      required:
        - outcome
      title: RefreshRelease
      type: object
    RefreshReleased:
      additionalProperties: false
      properties:
        reason:
          maxLength: 256
          minLength: 1
          title: Reason
          type: string
        request_id:
          maxLength: 512
          minLength: 1
          title: Request Id
          type: string
      required:
        - request_id
        - reason
      title: RefreshReleased
      type: object
    Problem:
      additionalProperties: false
      description: RFC 9457 problem details; `code` comes from the versioned error catalog.
      properties:
        code:
          title: Code
          type: string
        detail:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: Detail
        request_id:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: Request Id
        status:
          title: Status
          type: integer
        title:
          title: Title
          type: string
        type:
          default: about:blank
          title: Type
          type: string
      required:
        - title
        - status
        - code
      title: Problem
      type: object
  securitySchemes:
    sourceKey:
      type: http
      scheme: bearer
      description: nia_sk_...

````