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

# Reconcile from a snapshot

> A whole shared type, as NDJSON, one push item per line, applied with the provenance `snapshot`, which never sustains a claim.



## OpenAPI

````yaml openapi/en/cell.json POST /v1/objects/snapshot
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/objects/snapshot:
    post:
      tags:
        - state
      summary: Reconcile from a snapshot
      description: >-
        Reconciliation of a shared type from its system of record: NDJSON, one
        push item per line, applied as

        pushes of provenance `snapshot` by the same version rule.


        **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: snapshot_objects_v1_objects_snapshot_post
      parameters:
        - in: query
          name: type
          required: true
          schema:
            pattern: ^[a-z][a-z0-9_]{0,39}$
            title: Type
            type: string
      requestBody:
        content:
          application/x-ndjson:
            schema:
              type: string
        required: true
      responses:
        '202':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ObjectSnapshotResponse'
          description: Successful Response
        '422':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
          description: The request does not match the contract.
      security:
        - sourceKey: []
components:
  schemas:
    ObjectSnapshotResponse:
      additionalProperties: false
      description: >-
        A snapshot taken in: its lines are applied as pushes of provenance
        `snapshot`, which never sustain a

        claim, by the same version rule.
      properties:
        import_id:
          maxLength: 512
          minLength: 1
          title: Import Id
          type: string
        objects:
          description: The lines taken in.
          title: Objects
          type: integer
      required:
        - import_id
        - objects
      title: ObjectSnapshotResponse
      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_...

````