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

# Retirar uma asserção

> Desfaz uma ligação errada; o perfil se separa e a memória segue a origem.



## OpenAPI

````yaml openapi/pt/cell.json POST /v1/identity/assertions/{assertion_id}/retract
openapi: 3.1.0
info:
  title: API de dados da Niadra
  version: '1'
  description: >-
    Escrita, contexto, histórico, objetos, identidade, privacidade e governança
    de um espaço. Cada espaço tem um endereço estável, com o espaço e a região
    no nome.
servers:
  - url: https://{space}.{region}.api.niadra.com
    variables:
      space:
        default: acme-prod
        description: O espaço, que vem na chave de fonte.
      region:
        default: us-east-1
        description: A região do espaço, que também vem na chave.
security: []
paths:
  /v1/identity/assertions/{assertion_id}/retract:
    post:
      tags:
        - identity
      summary: Retirar uma asserção
      description: >-
        Retira uma asserção. O componente do perfil é recalculado e pode se
        dividir; fatos e objetos seguem o handle de origem, então a memória vai
        sozinha para a pessoa certa. Os contextos afetados são recompilados.


        **Autenticação.** Token de pessoa do Console com o papel `security`,
        `integration` (ou admin), ou chave de fonte com o escopo `admin`.
      operationId: retract_assertion_v1_identity_assertions__assertion_id__retract_post
      parameters:
        - in: path
          name: assertion_id
          required: true
          schema:
            format: uuid
            title: Assertion Id
            type: string
        - in: header
          name: Idempotency-Key
          required: true
          schema:
            maxLength: 256
            minLength: 1
            title: Idempotency-Key
            type: string
          description: >-
            Obrigatório. Fica guardado 24 horas com o hash do corpo: repetir com
            a mesma chave devolve a primeira resposta, e a mesma chave com outro
            corpo devolve 409 `conflict`.
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RetractIn'
            example:
              reason: Shared store tablet linked two customers
        required: true
      responses:
        '202':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OperationOut'
              example:
                op_id: 0192f7a1-5b10-7c3a-8e21-4d2f8a4c0e07
                status: queued
                assertion_id: 0192f7a1-5b10-7c3a-8e21-4d2f8a4c0e06
                link_id: null
          description: >-
            A operação. O perfil é recalculado e pode se dividir em dois ou
            mais.
        '422':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
          description: >-
            422 `invalid_input`, `verification_not_allowed` ou
            `about_without_link`.
      security:
        - sourceKey: []
        - personToken: []
components:
  schemas:
    RetractIn:
      additionalProperties: false
      properties:
        reason:
          anyOf:
            - maxLength: 500
              minLength: 1
              type: string
            - type: 'null'
          title: Reason
      title: RetractIn
      type: object
    OperationOut:
      additionalProperties: false
      properties:
        assertion_id:
          anyOf:
            - format: uuid
              type: string
            - type: 'null'
          title: Assertion Id
        link_id:
          anyOf:
            - format: uuid
              type: string
            - type: 'null'
          title: Link Id
        op_id:
          format: uuid
          title: Op Id
          type: string
        status:
          enum:
            - queued
            - applied
            - linked
            - blocked
          title: Status
          type: string
      required:
        - op_id
        - status
      title: OperationOut
      type: object
    Problem:
      additionalProperties: false
      description: >-
        Detalhes do problema no formato da RFC 9457; `code` vem do catálogo de
        erros versionado.
      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_...
    personToken:
      type: http
      scheme: bearer
      bearerFormat: JWT

````