Creates a form instance.

POST {{baseUrl}}/form-instances

Request Body

{"expire"=>"2023-06-20T15:57:55.332882Z", "formDefinitionId"=>"00000000-0000-0000-0000-000000000000", "recipients"=>[{"type"=>"IDENTITY", "id"=>"an-identity-id"}], "createdBy"=>{"type"=>"WORKFLOW_EXECUTION", "id"=>"a-workflow-execution-id"}}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: Created

{"created":"2023-07-12T20:14:57.74486Z","createdBy":{"id":"00000000-0000-0000-0000-000000000000","type":"WORKFLOW_EXECUTION"},"expire":"2023-08-12T20:14:57.74486Z","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":"commodo in Ex"}},{"effectType":"HIDE","config":{"defaultValueLabel":"Access to Remove","element":"non eiusmod eu"}}]},{"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":"esse Lorem elit adipisicing"}},{"effectType":"HIDE","config":{"defaultValueLabel":"Access to Remove","element":"ea veniam"}}]}],"formData":{"department":"Engineering"},"formDefinitionId":"00000000-0000-0000-0000-000000000000","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":{}}],"formErrors":[{"key":"department","messages":[{"locale":"en-US","localeOrigin":"DEFAULT","text":"This is an error"},{"locale":"en-US","localeOrigin":"DEFAULT","text":"This is an error"}],"value":"Engineering"},{"key":"department","messages":[{"locale":"en-US","localeOrigin":"DEFAULT","text":"This is an error"},{"locale":"en-US","localeOrigin":"DEFAULT","text":"This is an error"}],"value":"Engineering"}],"formInput":{"input1":"Sales"},"id":"00000000-0000-0000-0000-000000000000","modified":"2023-07-12T20:14:57.74486Z","recipients":[{"id":"00000000-0000-0000-0000-000000000000","type":"IDENTITY"},{"id":"00000000-0000-0000-0000-000000000000","type":"IDENTITY"}],"standAloneForm":false,"standAloneFormUrl":"https://my-org.identitynow.com/ui/d/forms/00000000-0000-0000-0000-000000000000","state":"ASSIGNED"}