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

# Upsert Item Public

> Upsert a single item using the same shape as the public read API.



## OpenAPI

````yaml /api-reference/openapi.json post /public/catalogs/{catalog_id}/items
openapi: 3.1.0
info:
  title: Rastro Public API
  description: >-
    Public API for enrichment, catalog management, workflows, activities,
    snapshots, taxonomy, and MCP integrations.
  version: 0.1.0
servers:
  - url: https://catalogapi.rastro.ai/api
security:
  - bearerAuth: []
paths:
  /public/catalogs/{catalog_id}/items:
    post:
      tags:
        - Catalogs
      summary: Upsert Item Public
      description: Upsert a single item using the same shape as the public read API.
      operationId: upsert_item_public_api_public_catalogs__catalog_id__items_post
      parameters:
        - name: catalog_id
          in: path
          required: true
          schema:
            type: string
            title: Catalog Id
        - name: X-Organization-Id
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: X-Organization-Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PublicUpsertItemRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicCatalogItem'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - bearerAuth: []
components:
  schemas:
    PublicUpsertItemRequest:
      properties:
        unique_identifier:
          type: string
          title: Unique Identifier
          description: >-
            Legacy compatibility field. Put the business identifier inside data
            as well; public single-item upsert uses the submitted data for
            matching.
        data:
          additionalProperties: true
          type: object
          title: Data
        source_info:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Source Info
      type: object
      required:
        - unique_identifier
        - data
      title: PublicUpsertItemRequest
    PublicCatalogItem:
      properties:
        id:
          type: string
          title: Id
        data:
          additionalProperties: true
          type: object
          title: Data
        metadata:
          additionalProperties: true
          type: object
          title: Metadata
      type: object
      required:
        - id
        - data
        - metadata
      title: PublicCatalogItem
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: Rastro API key or user token

````