Creates a form definition.

POST {{baseUrl}}/form-definitions

Request Body

{"name"=>"my form", "description"=>"my form description", "owner"=>{"type"=>"IDENTITY", "id"=>"00000000-0000-0000-0000-000000000000"}}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: Created

{"id":"00000000-0000-0000-0000-000000000000","name":"My form","description":"My form description","owner":{"type":"IDENTITY","id":"00000000-0000-0000-0000-000000000000"},"usedBy":[{"type":"WORKFLOW","id":"00000000-0000-0000-0000-000000000000"},{"type":"WORKFLOW","id":"00000000-0000-0000-0000-000000000000"}],"formInput":[{"id":"00000000-0000-0000-0000-000000000000","type":"STRING","label":"input1","description":"A single dynamic scalar value (i.e. number, string, date, etc.) that can be passed into the form for use in conditional logic"},{"id":"00000000-0000-0000-0000-000000000000","type":"STRING","label":"input1","description":"A single dynamic scalar value (i.e. number, string, date, etc.) that can be passed into the form for use in conditional logic"}],"formElements":[{"id":"00000000-0000-0000-0000-000000000000","elementType":"TEXT","config":{"label":"Department"},"key":"department","validations":{}},{"id":"00000000-0000-0000-0000-000000000000","elementType":"TEXT","config":{"label":"Department"},"key":"department","validations":{}}],"formConditions":[{"ruleOperator":"AND","rules":[{"sourceType":"ELEMENT","source":"department","operator":"EQ","valueType":"STRING","value":"Engineering"},{"sourceType":"ELEMENT","source":"department","operator":"EQ","valueType":"STRING","value":"Engineering"}],"effects":[{"effectType":"HIDE","config":{"defaultValueLabel":"Access to Remove","element":"incididunt in ut aliqua"}},{"effectType":"HIDE","config":{"defaultValueLabel":"Access to Remove","element":"est elit laborum"}}]},{"ruleOperator":"AND","rules":[{"sourceType":"ELEMENT","source":"department","operator":"EQ","valueType":"STRING","value":"Engineering"},{"sourceType":"ELEMENT","source":"department","operator":"EQ","valueType":"STRING","value":"Engineering"}],"effects":[{"effectType":"HIDE","config":{"defaultValueLabel":"Access to Remove","element":"do velit"}},{"effectType":"HIDE","config":{"defaultValueLabel":"Access to Remove","element":"elit proident eiusmod"}}]}],"created":"2023-07-12T20:14:57.74486Z","modified":"2023-07-12T20:14:57.74486Z"}