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

# Dry Run Update Broadcast Field Entries

> Dry run to classify entries as valid or invalid without importing anything.



## OpenAPI

````yaml https://api.useinvent.com/openapi.json patch /orgs/{org_id}/broadcasts/{broadcast_id}/fields/entries/dry
openapi: 3.1.0
info:
  version: 1.0.0
  title: Invent API
servers:
  - url: https://api.useinvent.com
security:
  - bearerAuth: []
paths:
  /orgs/{org_id}/broadcasts/{broadcast_id}/fields/entries/dry:
    patch:
      tags:
        - Orgs Broadcasts
      summary: Dry Run Update Broadcast Field Entries
      description: >-
        Dry run to classify entries as valid or invalid without importing
        anything.
      parameters:
        - schema:
            type: string
          required: true
          description: Org ID
          name: org_id
          in: path
        - schema:
            type: string
          required: true
          description: Broadcast ID
          name: broadcast_id
          in: path
      requestBody:
        description: ''
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateBroadcastFieldEntriesSchema'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/UpdateBroadcastFieldEntriesSchema'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UpdateBroadcastFieldEntriesDryRunSchema'
components:
  schemas:
    UpdateBroadcastFieldEntriesSchema:
      type: object
      properties:
        entries:
          type: array
          items:
            type: object
            properties:
              user_id:
                type: string
                maxLength: 1024
                description: The user ID of the contact channel
              email:
                type: string
                maxLength: 256
                description: The email for the contact channel (e.g. user@example.com)
              phone:
                type: string
                maxLength: 256
                description: The phone number for the contact channel (e.g. +1234567890)
              values:
                $ref: '#/components/schemas/BroadcastFieldValuesSchema'
            required:
              - values
          maxItems: 50000
        mode:
          type: string
          enum:
            - replace
            - merge
          description: >-
            'replace' (default) swaps the whole entry set; 'merge' upserts by
            identifier (user_id, email or phone) and merges values into matching
            entries.
      required:
        - entries
      description: Schema for importing broadcast field entries
    UpdateBroadcastFieldEntriesDryRunSchema:
      type: object
      properties:
        valid:
          type: array
          items:
            $ref: '#/components/schemas/BroadcastFieldEntryDryRunItemSchema'
        invalid:
          type: array
          items:
            $ref: '#/components/schemas/BroadcastFieldEntryInvalidSchema'
      required:
        - valid
        - invalid
      description: Dry run result classifying entries as valid or invalid
    BroadcastFieldValuesSchema:
      type: object
      additionalProperties:
        type: string
        maxLength: 524288
      description: A record of field keys and values per broadcast contact
    BroadcastFieldEntryDryRunItemSchema:
      type: object
      properties:
        user_id:
          type: string
          maxLength: 1024
          description: The user ID of the contact channel
        email:
          type: string
          maxLength: 256
          description: The email for the contact channel (e.g. user@example.com)
        phone:
          type: string
          maxLength: 256
          description: The phone number for the contact channel (e.g. +1234567890)
      description: An entry item for broadcast field dry run
    BroadcastFieldEntryInvalidSchema:
      type: object
      properties:
        index:
          type: number
          description: Position of the entry in the submitted array
        entry:
          $ref: '#/components/schemas/BroadcastFieldEntryDryRunItemSchema'
        reason:
          $ref: '#/components/schemas/ContactChannelInvalidReasonSchema'
      required:
        - index
        - entry
        - reason
      description: A rejected entry with the reason it failed validation
    ContactChannelInvalidReasonSchema:
      type: string
      enum:
        - INVALID_EMAIL
        - INVALID_PHONE
        - MISSING_IDENTIFIER
        - DUPLICATE_IN_FILE
      description: Why an imported channel was rejected
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: Bearer token authentication using your API key

````