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

# Update unique submission setting

> Set how the form prevents repeat submissions. `no_track` allows repeats. `cookie_track` uses a browser cookie. `ip_track` uses the IP address. `record_track` uses the answer to an email or phone question.

> [!NOTE]
>
> Replace `{your-subdomain}` with your workspace’s subdomain. \
> Learn how to find your subdomain in [Workspace subdomain](https://apidocs.neetoform.com/api/workspace-subdomain.md).


## OpenAPI

````yaml bundled/form-settings.yaml PATCH /forms/{form_id}/unique_submission
openapi: 3.0.3
info:
  title: NeetoForm Form Settings APIs
  version: 2.0.0
servers:
  - description: NeetoForm APIs
    url: https://{your-subdomain}.neetoform.com/api/external/v2
    variables:
      your-subdomain:
        default: spinkart
        description: >-
          Replace **spinkart** with your [workspace's
          subdomain](/api/workspace-subdomain).
security: []
paths:
  /forms/{form_id}/unique_submission:
    patch:
      tags:
        - Unique Submissions
      summary: Update unique submission setting
      description: >-
        Set how the form prevents repeat submissions. `no_track` allows repeats.
        `cookie_track` uses a browser cookie. `ip_track` uses the IP address.
        `record_track` uses the answer to an email or phone question.
      parameters:
        - $ref: '#/components/parameters/api_key_header'
        - $ref: '#/components/parameters/form_id_param'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - unique_submission
              properties:
                unique_submission:
                  type: object
                  properties:
                    submission_tracking_method:
                      type: string
                      enum:
                        - no_track
                        - cookie_track
                        - ip_track
                        - record_track
                      description: How repeat submissions are found.
                      example: record_track
                    unique_by_record_id:
                      type: string
                      description: >-
                        ID of the email or phone question to check. Used with
                        `record_track`.
                      example: 5d1e5a52-7a0e-4f2b-9d57-3d6a1a2f9c11
      responses:
        '200':
          description: OK - Setting updated
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/unique_submission_response'
        '400':
          $ref: '#/components/responses/response_missing_body'
        '404':
          $ref: '#/components/responses/response_form_not_found'
        '422':
          description: Unprocessable Entity - The method is not valid
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error_response'
              example:
                error: Submission tracking method is not included in the list
components:
  parameters:
    api_key_header:
      in: header
      name: X-Api-Key
      description: >-
        Use the X-Api-Key header to provide your workspace API key. Refer to
        [Authentication](/api/authentication) for more information.
      required: true
      schema:
        type: string
        default: your-api-key
    form_id_param:
      in: path
      name: form_id
      description: >-
        Unique ID of the form. Refer to [Getting the Form
        ID](/api/getting-form-id) for detailed instructions.
      required: true
      schema:
        type: string
  schemas:
    unique_submission_response:
      type: object
      properties:
        unique_submission:
          $ref: '#/components/schemas/unique_submission'
    error_response:
      type: object
      properties:
        error:
          type: string
    unique_submission:
      type: object
      properties:
        submission_tracking_method:
          type: string
          enum:
            - no_track
            - cookie_track
            - ip_track
            - record_track
          example: record_track
        unique_by_record_id:
          type: string
          nullable: true
          description: >-
            ID of the email or phone question used to find repeat submissions.
            Used with `record_track`.
          example: 5d1e5a52-7a0e-4f2b-9d57-3d6a1a2f9c11
  responses:
    response_missing_body:
      description: Bad Request - The request body is missing its root key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/error_response'
    response_form_not_found:
      description: Not Found - The form does not exist
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/error_response'
          example:
            error: Form does not exist.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.