ConditionalFields

Reorder conditional fields

POST
/api/organizations/{organizationId}/conditional-fields/reorder

Replace the ordering of conditional fields within a section. The order array must list every field id currently in scope; the new index is the position in the array.

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

organizationId*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X POST "https://example.com/api/organizations/string/conditional-fields/reorder" \  -H "Content-Type: application/json" \  -d '{    "order": [      "66d0a0b0c0d0e0f0a0b0c0d0",      "66d0a0b0c0d0e0f0a0b0c0d1"    ],    "type": "contact",    "sectionType": "identity"  }'
{  "data": [    {      "_id": "66d0a0b0c0d0e0f0a0b0c0d0",      "name": "Eligibility flag",      "sectionId": "contact.identity",      "expression": "contact.age >= 18 && contact.country == \"US\"",      "status": "active",      "outputType": "boolean"    }  ]}