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

# Reorder conditions

> Set the order in which the conditions of a form are checked. Send every condition ID of the form, in the new order.

> [!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/conditions.yaml PATCH /forms/{form_id}/conditions/reorder
openapi: 3.0.3
info:
  title: NeetoForm 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}/conditions/reorder:
    patch:
      tags:
        - Conditional logic
      summary: Reorder conditions
      description: >-
        Set the order in which the conditions of a form are checked. Send every
        condition ID of the form, in the new order.
      parameters:
        - $ref: '#/components/parameters/api_key_header'
        - $ref: '#/components/parameters/form_id_param'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - condition_ids
              properties:
                condition_ids:
                  type: array
                  description: >-
                    Every condition ID of the form, in the new order. Each ID
                    must appear exactly once.
                  items:
                    type: string
      responses:
        '200':
          description: OK - The new order
          content:
            application/json:
              schema:
                type: object
                properties:
                  condition_ids:
                    type: array
                    items:
                      type: string
        '400':
          description: Bad Request - The `condition` key is missing
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error_response'
              example:
                error: 'param is missing or the value is empty: condition'
        '404':
          description: Not Found - The form does not exist
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error_response'
              example:
                error: Form does not exist.
        '422':
          description: >-
            Unprocessable Entity - The list does not match the conditions of the
            form
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error_response'
              example:
                error: condition_ids must list every id of the form exactly once.
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:
    error_response:
      type: object
      properties:
        error:
          type: string

````

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