> ## 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 claim

> Ends the claim, naming the epoch it got; another epoch is refused.



## OpenAPI

````yaml openapi/en/cell.json POST /v1/coordination/claims/{claim_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/coordination/claims/{claim_id}/release:
    post:
      tags:
        - coordination
      summary: Release a claim
      description: >-
        Ends the claim. The release names the epoch the claim got when it was
        accepted; a release with another epoch is refused, so a holder whose
        claim was replaced cannot release its successor's.


        **Authentication.** Source key: `Authorization: Bearer nia_sk_...`.
        Required scope: `coordinate`. It answers only in a space with the
        `coordination` feature on (the `features` document); in a space without
        it, 404.
      operationId: release_claim_v1_coordination_claims__claim_id__release_post
      parameters:
        - in: path
          name: claim_id
          required: true
          schema:
            title: Claim Id
            type: string
        - in: header
          name: Idempotency-Key
          required: true
          schema:
            maxLength: 256
            minLength: 1
            title: Idempotency-Key
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ClaimRelease'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OwnershipClaim'
          description: The released claim.
        '422':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
          description: The request does not match the contract.
      security:
        - sourceKey: []
components:
  schemas:
    ClaimRelease:
      additionalProperties: false
      properties:
        epoch:
          title: Epoch
          type: integer
      required:
        - epoch
      title: ClaimRelease
      type: object
    OwnershipClaim:
      additionalProperties: false
      properties:
        claim_id:
          maxLength: 512
          minLength: 1
          title: Claim Id
          type: string
        epoch:
          title: Epoch
          type: integer
        holder:
          title: Holder
          type: string
        kind:
          $ref: '#/components/schemas/ClaimKind'
        level:
          pattern: ^[a-z][a-z0-9_]{0,39}$
          title: Level
          type: string
        valid_until:
          format: date-time
          title: Valid Until
          type: string
      required:
        - claim_id
        - kind
        - holder
        - level
        - valid_until
        - epoch
      title: OwnershipClaim
      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
    ClaimKind:
      enum:
        - owner
        - case
        - task_lock
      title: ClaimKind
      type: string
  securitySchemes:
    sourceKey:
      type: http
      scheme: bearer
      description: nia_sk_...

````