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

# Create or update form conditions

> **Permissions:** [Build Access to parent application](https://help.logicgate.com/hc/en-us/articles/4402683190164-Control-Build-Access-for-Applications)

Create or update the conditions that control visibility of the identified target section.



## OpenAPI

````yaml POST /api/v1/internal/conditions/form/target/{targetId}
openapi: 3.1.0
info:
  title: Risk Cloud API
  description: >-
    The Risk Cloud API is a collection of RESTful API endpoints that empower you
    and your team to directly integrate, automate, and build with the Risk
    Cloud. Risk Cloud API endpoint payloads are JSON based, with some endpoints
    supporting exports in CSV and XSLX formats for flexible integration.


    This API documentation showcases our Risk Cloud API v1, containing a variety
    of endpoints with continued support for enabling integrations with the Risk
    Cloud.


    Visit the [LogicGate Risk Cloud Developer
    Portal](https://www.logicgate.com/developer/) to get started with building
    your custom integration with quick start guides, usage guides, release
    notes, and more. Or download the [v1 OpenAPI
    specification](/legacy-openapi.json).


    Explore our [Risk Cloud API v2](https://docs.logicgate.com/v2/index.html)
    endpoints and documentation as well. [Risk Cloud API
    v2](https://docs.logicgate.com/v2/index.html) is our collection of API-First
    endpoints that are tailor made for our developer users, offer concise and
    highly documented details, are supported by a [Postman
    collection](https://www.postman.com/logicgate-postman/workspace/logicgate-risk-cloud-api/collection/29257227-de8d264b-6eeb-4177-bea6-2da0a8cabffc)
    and [v2 OpenAPI specification](https://github.com/LogicGateTech/openapi),
    and contain our latest API endpoint releases.
  contact:
    name: developer-relations@logicgate.com
    email: developer-relations@logicgate.com
  version: v2026.11.0
servers:
  - url: https://{subdomain}.logicgate.com
    description: Your Risk Cloud environment.
    variables:
      subdomain:
        description: Your Risk Cloud environment's subdomain (e.g. `qa`).
        default: your-instance
security:
  - ApiToken: []
  - basic: []
tags:
  - name: Authentication
    description: >-
      Getting Started: How to create an [API Access
      Token](https://www.logicgate.com/developer/risk-cloud-api-authentication/)
      to begin integrating with the Risk Cloud API
  - name: Attachment
    description: Endpoints for uploading, downloading, and retrieving record attachments.
  - name: Field
    description: Endpoints for creating, updating, and querying fields.
  - name: Principal
    description: >-
      Endpoints for the authenticated principal to view and manage their own
      details.
  - name: Record Audit
    description: Endpoints for retrieving record audit history and productivity data.
  - name: Step
    description: Endpoints for retrieving steps and the steps a user can access.
  - name: Table Report
    description: Endpoints for retrieving and managing table reports.
  - name: User Group
    description: Endpoints for managing user groups and their membership.
externalDocs:
  description: Developer Portal
  url: https://www.logicgate.com/developer/
paths:
  /api/v1/internal/conditions/form/target/{targetId}:
    post:
      tags:
        - Condition
      summary: Create or update form conditions
      description: >-
        **Permissions:** [Build Access to parent
        application](https://help.logicgate.com/hc/en-us/articles/4402683190164-Control-Build-Access-for-Applications)


        Create or update the conditions that control visibility of the
        identified target section.
      operationId: createOrUpdateFormConditions
      parameters:
        - name: targetId
          in: path
          description: >-
            The unique ID of the target section whose form conditions are being
            created or updated.
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              type: array
              items:
                $ref: '#/components/schemas/Condition_ExtendedConditionSummary'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Condition_ExtendedConditionSummary'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/AppStatusResponse_ExtendedConditionSummary
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/AppStatusResponse_ExtendedConditionSummary
components:
  schemas:
    Condition_ExtendedConditionSummary:
      type: object
      discriminator:
        propertyName: conditionType
      oneOf:
        - description: Circular reference to FormCondition_ExtendedConditionSummary
        - description: 'And other types: TriggerCondition_ExtendedConditionSummary'
      properties:
        id:
          type: string
        active:
          type: boolean
        created:
          type: string
          format: date-time
        updated:
          type: string
          format: date-time
        operator:
          type: string
          enum:
            - EQUALS
            - NOT_EQUALS
            - IS
            - IS_NOT
            - GREATER_THAN
            - GREATER_THAN_EQUALS
            - LESS_THAN
            - LESS_THAN_EQUALS
            - CONTAINS
            - DOES_NOT_CONTAIN
            - 'NULL'
            - NOT_NULL
            - DATE_RANGE
            - NUMERIC_RANGE
        priority:
          type: integer
          format: int32
        field:
          $ref: '#/components/schemas/Field_ExtendedConditionSummary'
        currentValue:
          $ref: '#/components/schemas/CurrentValue_ExtendedConditionSummary'
        fieldId:
          type: string
        currentValueId:
          type: string
        targetId:
          description: >-
            Circular reference to
            ConditionGraphEntityObject_ExtendedConditionSummary
          writeOnly: true
        conditionType:
          type: string
        fieldType:
          type: string
          enum:
            - TEXT
            - EXTERNAL_USER
            - EXTERNAL_ID
            - TEXT_AREA
            - DATE_PICKER
            - NUMBER
            - E_SIGNATURE
            - CHECKBOX
            - MULTI_SELECT
            - RADIO
            - SELECT
            - USER
            - ATTACHMENT
            - CALCULATION
            - TEXT_CONCATENATION
            - FIXED_DATE_CALCULATION
            - LINKED_RECORDS_COUNT
            - DUE_DATE
            - DAYS_UNTIL_DUE
            - EVIDENCE
            - AEC_INFO
            - ANNUAL_LOSS_EXPOSURE
        target:
          $ref: '#/components/schemas/GraphEntity_ExtendedConditionSummary'
      required:
        - active
        - created
        - currentValue
        - currentValueId
        - field
        - fieldId
        - id
        - operator
        - priority
        - targetId
        - updated
    AppStatusResponse_ExtendedConditionSummary:
      type: object
      properties:
        type:
          type: string
          format: uri
        title:
          type: string
        status:
          type: integer
          format: int32
        detail:
          type: string
        instance:
          type: string
          format: uri
        properties:
          type: object
          additionalProperties: {}
    Field_ExtendedConditionSummary:
      type: object
      description: >-
        An entity used to manage input fields used to capture record data for
        different workflows.
      discriminator:
        propertyName: fieldType
      oneOf:
        - $ref: '#/components/schemas/Text_ExtendedConditionSummary'
        - description: >-
            And other types: ExternalUser_ExtendedConditionSummary,
            ExternalId_ExtendedConditionSummary,
            TextArea_ExtendedConditionSummary,
            DatePicker_ExtendedConditionSummary,
            Number_ExtendedConditionSummary,
            ESignature_ExtendedConditionSummary,
            Checkbox_ExtendedConditionSummary,
            MultiSelect_ExtendedConditionSummary,
            Radio_ExtendedConditionSummary, Select_ExtendedConditionSummary,
            Attachment_ExtendedConditionSummary, User_ExtendedConditionSummary,
            Evidence_ExtendedConditionSummary,
            Calculation_ExtendedConditionSummary,
            FixedDateCalculation_ExtendedConditionSummary,
            LinkedRecordsCount_ExtendedConditionSummary,
            DueDate_ExtendedConditionSummary,
            TransientFieldDaysUntilDue_ExtendedConditionSummary,
            AnnualLossExposure_ExtendedConditionSummary,
            AecInfo_ExtendedConditionSummary, Text_ExtendedConditionSummary,
            ExternalUser_ExtendedConditionSummary,
            ExternalId_ExtendedConditionSummary,
            TextArea_ExtendedConditionSummary,
            DatePicker_ExtendedConditionSummary,
            Number_ExtendedConditionSummary,
            ESignature_ExtendedConditionSummary,
            Checkbox_ExtendedConditionSummary,
            MultiSelect_ExtendedConditionSummary,
            Radio_ExtendedConditionSummary, Select_ExtendedConditionSummary,
            Attachment_ExtendedConditionSummary, User_ExtendedConditionSummary,
            Evidence_ExtendedConditionSummary,
            Calculation_ExtendedConditionSummary,
            TextConcatenation_ExtendedConditionSummary,
            FixedDateCalculation_ExtendedConditionSummary,
            LinkedRecordsCount_ExtendedConditionSummary,
            DueDate_ExtendedConditionSummary,
            TransientFieldDaysUntilDue_ExtendedConditionSummary,
            AnnualLossExposure_ExtendedConditionSummary,
            AecInfo_ExtendedConditionSummary
      properties:
        id:
          type: string
        active:
          type: boolean
        created:
          type: string
          format: date-time
        updated:
          type: string
          format: date-time
        fieldType:
          type: string
          enum:
            - TEXT
            - EXTERNAL_USER
            - EXTERNAL_ID
            - TEXT_AREA
            - DATE_PICKER
            - NUMBER
            - E_SIGNATURE
            - CHECKBOX
            - MULTI_SELECT
            - RADIO
            - SELECT
            - USER
            - ATTACHMENT
            - CALCULATION
            - TEXT_CONCATENATION
            - FIXED_DATE_CALCULATION
            - LINKED_RECORDS_COUNT
            - DUE_DATE
            - DAYS_UNTIL_DUE
            - EVIDENCE
            - AEC_INFO
            - ANNUAL_LOSS_EXPOSURE
        name:
          type: string
          description: The name of the field.
        labels:
          type: array
          items:
            type: string
          uniqueItems: true
        label:
          type: string
          description: >-
            The label will appear as the label for the field when it appears on
            forms for user's to complete.
        tooltip:
          type: string
          description: A text value that will populate any tooltip information.
        helpText:
          type: string
          description: >-
            A text value that supplies necessary context for a person to fill
            out an input field.
        format:
          type: string
          enum:
            - CURRENCY
            - DECIMAL
        currency:
          type: string
          enum:
            - EUR
            - GBP
            - USD
        enabledForRecordAccess:
          type: boolean
        currentValues:
          type: array
          description: >-
            Relationship to current values that are associated to the field. A
            field maybe have multiple current values associated to it.
          items:
            $ref: '#/components/schemas/CurrentValue_ExtendedConditionSummary'
        defaultValues:
          type: array
          description: >-
            Relationship to current values that are defaulted to the field. A
            field maybe have multiple default current values associated to it.
          items:
            $ref: '#/components/schemas/CurrentValue_ExtendedConditionSummary'
        analysisEstimate:
          type: string
          enum:
            - CONFIDENCE
            - MAXIMUM
            - MINIMUM
            - MOST_LIKELY
        analysisType:
          type: string
          enum:
            - CONTACT_FREQUENCY
            - LOSS_EVENT_FREQUENCY
            - LOSS_MAGNITUDE
            - PRIMARY_PRODUCTIVITY_LOSS
            - PRIMARY_RESPONSE_LOSS
            - PRIMARY_REPLACEMENT_LOSS
            - PRIMARY_COMPETITIVE_ADVANTAGE_LOSS
            - PRIMARY_FINES_OR_JUDGEMENTS_LOSS
            - PRIMARY_REPUTATION_DAMAGE_LOSS
            - PROBABILITY_OF_ACTION
            - RESISTANCE_STRENGTH
            - SECONDARY_PRODUCTIVITY_LOSS
            - SECONDARY_RESPONSE_LOSS
            - SECONDARY_REPLACEMENT_LOSS
            - SECONDARY_COMPETITIVE_ADVANTAGE_LOSS
            - SECONDARY_FINES_OR_JUDGEMENTS_LOSS
            - SECONDARY_REPUTATION_DAMAGE_LOSS
            - SECONDARY_LOSS_EVENT_FREQUENCY
            - SECONDARY_LOSS_MAGNITUDE
            - THREAT_CAPABILITY
            - THREAT_EVENT_FREQUENCY
            - VULNERABILITY
        copyRecordAccessField:
          type: boolean
        currencyForNumberDisplayingFields:
          description: Circular reference to Field_ExtendedConditionSummary
          writeOnly: true
        global:
          type: boolean
        requiresUniqueValue:
          type: boolean
        parameterizedCurrentValues:
          type: array
          items:
            $ref: '#/components/schemas/CurrentValueObject_ExtendedConditionSummary'
          writeOnly: true
        analysisOutputField:
          type: boolean
        currentValuesFromOtherField:
          description: Circular reference to Field_ExtendedConditionSummary
          writeOnly: true
        formatForNumberDisplayingFields:
          description: Circular reference to Field_ExtendedConditionSummary
          writeOnly: true
        crossWorkflowCalculation:
          type: boolean
        validTypeForCalculationInput:
          type: boolean
      required:
        - active
        - analysisEstimate
        - analysisType
        - copyRecordAccessField
        - created
        - currency
        - currentValues
        - defaultValues
        - enabledForRecordAccess
        - fieldType
        - format
        - helpText
        - id
        - label
        - labels
        - name
        - tooltip
        - updated
    CurrentValue_ExtendedConditionSummary:
      type: object
      description: Entity used to manage record's field data.
      discriminator:
        propertyName: discriminator
      oneOf:
        - $ref: '#/components/schemas/CurrentCommonValue_ExtendedConditionSummary'
        - description: >-
            And other types: CurrentDateValue_ExtendedConditionSummary,
            CurrentDateRangeValue_ExtendedConditionSummary,
            CurrentJobValue_ExtendedConditionSummary,
            CurrentCommonValue_ExtendedConditionSummary,
            CurrentDateValue_ExtendedConditionSummary,
            CurrentDateRangeValue_ExtendedConditionSummary,
            LabelValue_ExtendedConditionSummary,
            CleanAttachment_ExtendedConditionSummary,
            DirtyAttachment_ExtendedConditionSummary,
            PendingAttachment_ExtendedConditionSummary,
            CurrentGoogleAttachmentValue_ExtendedConditionSummary,
            CurrentSharepointAttachmentValue_ExtendedConditionSummary,
            Active_ExtendedConditionSummary, Automated_ExtendedConditionSummary,
            Disabled_ExtendedConditionSummary,
            External_ExtendedConditionSummary, Locked_ExtendedConditionSummary,
            Service_ExtendedConditionSummary,
            CurrentNumericRangeValue_ExtendedConditionSummary,
            CurrentJobValue_ExtendedConditionSummary
      properties:
        id:
          type: string
        active:
          type: boolean
        created:
          type: string
          format: date-time
        updated:
          type: string
          format: date-time
        valueType:
          type: string
        discriminator:
          type: string
        textValue:
          type: string
        numericValue:
          type: number
          format: double
        isDefault:
          type: boolean
        archived:
          type: boolean
        priority:
          type: integer
          format: int32
        userGroup:
          type: string
          description: usergroup
        fieldId:
          type: string
        idOrTransientId:
          type: string
        transientIdOrId:
          type: string
        textOrNumericValue:
          type: string
        empty:
          type: boolean
      required:
        - active
        - archived
        - created
        - discriminator
        - id
        - isDefault
        - numericValue
        - priority
        - textValue
        - updated
        - userGroup
        - valueType
    GraphEntity_ExtendedConditionSummary:
      type: object
      properties:
        id:
          type: string
        active:
          type: boolean
        created:
          type: string
          format: date-time
        updated:
          type: string
          format: date-time
        '@id':
          type: integer
          format: int32
      required:
        - active
        - created
        - id
        - updated
    Text_ExtendedConditionSummary:
      allOf:
        - description: Circular reference to Field_ExtendedConditionSummary
      required:
        - fieldType
    CurrentValueObject_ExtendedConditionSummary:
      type: object
      description: Entity used to manage record's field data.
      discriminator:
        propertyName: discriminator
      oneOf:
        - $ref: '#/components/schemas/CurrentCommonValue_ExtendedConditionSummary'
        - description: >-
            And other types: CurrentDateValue_ExtendedConditionSummary,
            CurrentDateRangeValue_ExtendedConditionSummary,
            CurrentJobValue_ExtendedConditionSummary,
            CurrentCommonValue_ExtendedConditionSummary,
            CurrentDateValue_ExtendedConditionSummary,
            CurrentDateRangeValue_ExtendedConditionSummary,
            LabelValue_ExtendedConditionSummary,
            CleanAttachment_ExtendedConditionSummary,
            DirtyAttachment_ExtendedConditionSummary,
            PendingAttachment_ExtendedConditionSummary,
            CurrentGoogleAttachmentValue_ExtendedConditionSummary,
            CurrentSharepointAttachmentValue_ExtendedConditionSummary,
            Active_ExtendedConditionSummary, Automated_ExtendedConditionSummary,
            Disabled_ExtendedConditionSummary,
            External_ExtendedConditionSummary, Locked_ExtendedConditionSummary,
            Service_ExtendedConditionSummary,
            CurrentNumericRangeValue_ExtendedConditionSummary,
            CurrentJobValue_ExtendedConditionSummary
      properties:
        id:
          type: string
        active:
          type: boolean
        created:
          type: string
          format: date-time
        updated:
          type: string
          format: date-time
        valueType:
          type: string
        discriminator:
          type: string
        textValue:
          type: string
        numericValue:
          type: number
          format: double
        isDefault:
          type: boolean
        archived:
          type: boolean
        priority:
          type: integer
          format: int32
        userGroup:
          type: string
          description: usergroup
        fieldId:
          type: string
        idOrTransientId:
          type: string
        transientIdOrId:
          type: string
        textOrNumericValue:
          type: string
        empty:
          type: boolean
      required:
        - active
        - archived
        - created
        - discriminator
        - id
        - isDefault
        - numericValue
        - priority
        - textValue
        - updated
        - userGroup
        - valueType
    CurrentCommonValue_ExtendedConditionSummary:
      allOf:
        - description: Circular reference to CurrentValue_ExtendedConditionSummary
      required:
        - description
        - guidance
  securitySchemes:
    ApiToken:
      type: http
      scheme: bearer
      bearerFormat: API Token
    basic:
      type: http
      scheme: basic

````

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