Patch a form instance.
PATCH/form-instances/:formInstanceID
Parameter {formInstanceID}
should match a form instance ID.
Request
Path Parameters
Form instance ID
- application/json
Body
array
Body is the request payload to patch a form instance, check: https://jsonpatch.com
Array [
]
property name*
object
Responses
- 200
- 400
- 401
- 403
- 404
- 409
- 429
- 500
Returns the form instance updated
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
]
Array [
]
]
Array [
Array [
]
]
Array [
Array [
]
]
Array [
]
Created is the date the form instance was assigned
createdBy
object
ID is a unique identifier
Possible values: [WORKFLOW_EXECUTION
, SOURCE
]
Type is a form instance created by type enum value WORKFLOW_EXECUTION FormInstanceCreatedByTypeWorkflowExecution SOURCE FormInstanceCreatedByTypeSource
Expire is the maximum amount of time that a form can be in progress. After this time is reached then the form will be moved to a CANCELED state automatically. The user will no longer be able to complete the submission. When a form instance is expires an audit log will be generated for that record
formConditions
object[]
FormConditions is the conditional logic that modify the form dynamically modify the form as the recipient is interacting out the form
Possible values: [AND
, OR
]
ConditionRuleLogicalOperatorType value. AND ConditionRuleLogicalOperatorTypeAnd OR ConditionRuleLogicalOperatorTypeOr
rules
object[]
List of rules.
Possible values: [INPUT
, ELEMENT
]
Defines the type of object being selected. It will be either a reference to a form input (by input name) or a form element (by technical key). INPUT ConditionRuleSourceTypeInput ELEMENT ConditionRuleSourceTypeElement
Source - if the sourceType is ConditionRuleSourceTypeInput, the source type is the name of the form input to accept. However, if the sourceType is ConditionRuleSourceTypeElement, the source is the name of a technical key of an element to retrieve its value.
Possible values: [EQ
, NE
, CO
, NOT_CO
, IN
, NOT_IN
, EM
, NOT_EM
, SW
, NOT_SW
, EW
, NOT_EW
]
ConditionRuleComparisonOperatorType value. EQ ConditionRuleComparisonOperatorTypeEquals This comparison operator compares the source and target for equality. NE ConditionRuleComparisonOperatorTypeNotEquals This comparison operator compares the source and target for inequality. CO ConditionRuleComparisonOperatorTypeContains This comparison operator searches the source to see whether it contains the value. NOT_CO ConditionRuleComparisonOperatorTypeNotContains IN ConditionRuleComparisonOperatorTypeIncludes This comparison operator searches the source if it equals any of the values. NOT_IN ConditionRuleComparisonOperatorTypeNotIncludes EM ConditionRuleComparisonOperatorTypeEmpty NOT_EM ConditionRuleComparisonOperatorTypeNotEmpty SW ConditionRuleComparisonOperatorTypeStartsWith Checks whether a string starts with another substring of the same string. This operator is case-sensitive. NOT_SW ConditionRuleComparisonOperatorTypeNotStartsWith EW ConditionRuleComparisonOperatorTypeEndsWith Checks whether a string ends with another substring of the same string. This operator is case-sensitive. NOT_EW ConditionRuleComparisonOperatorTypeNotEndsWith
Possible values: [STRING
, STRING_LIST
, INPUT
, ELEMENT
, LIST
, BOOLEAN
]
ConditionRuleValueType type. STRING ConditionRuleValueTypeString This value is a static string. STRING_LIST ConditionRuleValueTypeStringList This value is an array of string values. INPUT ConditionRuleValueTypeInput This value is a reference to a form input. ELEMENT ConditionRuleValueTypeElement This value is a reference to a form element (by technical key). LIST ConditionRuleValueTypeList BOOLEAN ConditionRuleValueTypeBoolean
Based on the ValueType.
effects
object[]
List of effects.
Possible values: [HIDE
, SHOW
, DISABLE
, ENABLE
, REQUIRE
, OPTIONAL
, SUBMIT_MESSAGE
, SUBMIT_NOTIFICATION
, SET_DEFAULT_VALUE
]
Type of effect to perform when the conditions are evaluated for this logic block. HIDE ConditionEffectTypeHide Disables validations. SHOW ConditionEffectTypeShow Enables validations. DISABLE ConditionEffectTypeDisable Disables validations. ENABLE ConditionEffectTypeEnable Enables validations. REQUIRE ConditionEffectTypeRequire OPTIONAL ConditionEffectTypeOptional SUBMIT_MESSAGE ConditionEffectTypeSubmitMessage SUBMIT_NOTIFICATION ConditionEffectTypeSubmitNotification SET_DEFAULT_VALUE ConditionEffectTypeSetDefaultValue This value is ignored on purpose.
config
object
Arbitrary map containing a configuration based on the EffectType.
Effect type's label.
Element's identifier.
formData
object
nullable
FormData is the data provided by the form on submit. The data is in a key -> value map
FormData is the data provided by the form on submit. The data is in a key -> value map
FormDefinitionID is the id of the form definition that created this form
formElements
object[]
FormElements is the configuration of the form, this would be a repeat of the fields from the form-config
Form element identifier.
Possible values: [TEXT
, TOGGLE
, TEXTAREA
, HIDDEN
, PHONE
, EMAIL
, SELECT
, DATE
, SECTION
, COLUMN_SET
, IMAGE
, DESCRIPTION
]
FormElementType value. TEXT FormElementTypeText TOGGLE FormElementTypeToggle TEXTAREA FormElementTypeTextArea HIDDEN FormElementTypeHidden PHONE FormElementTypePhone EMAIL FormElementTypeEmail SELECT FormElementTypeSelect DATE FormElementTypeDate SECTION FormElementTypeSection COLUMN_SET FormElementTypeColumns IMAGE FormElementTypeImage DESCRIPTION FormElementTypeDescription
config
object
Config object.
Config object.
Technical key.
validations
object[]
nullable
Possible values: [REQUIRED
, MIN_LENGTH
, MAX_LENGTH
, REGEX
, DATE
, MAX_DATE
, MIN_DATE
, LESS_THAN_DATE
, PHONE
, EMAIL
, DATA_SOURCE
, TEXTAREA
]
The type of data validation that you wish to enforce, e.g., a required field, a minimum length, etc.
formErrors
object[]
FormErrors is an array of form validation errors from the last time the form instance was transitioned to the SUBMITTED state. If the form instance had validation errors then it would be moved to the IN PROGRESS state where the client can retrieve these errors
Key is the technical key
messages
object[]
Messages is a list of web.ErrorMessage items
Locale is the current Locale
LocaleOrigin holds possible values of how the locale was selected
Text is the actual text of the error message
Value is the value associated with a Key
formInput
object
nullable
FormInput is an object of form input labels to value
FormInput is an object of form input labels to value
Unique guid identifying this form instance
Modified is the last date the form instance was modified
recipients
object[]
Recipients references to the recipient of a form. The recipients are those who are responsible for filling out a form and completing it
ID is a unique identifier
Possible values: [IDENTITY
]
Type is a FormInstanceRecipientType value IDENTITY FormInstanceRecipientIdentity
StandAloneForm is a boolean flag to indicate if this form should be available for users to complete via the standalone form UI or should this only be available to be completed by as an embedded form
StandAloneFormURL is the URL where this form may be completed by the designated recipients using the standalone form UI
Possible values: [ASSIGNED
, IN_PROGRESS
, SUBMITTED
, COMPLETED
, CANCELLED
]
State the state of the form instance ASSIGNED FormInstanceStateAssigned IN_PROGRESS FormInstanceStateInProgress SUBMITTED FormInstanceStateSubmitted COMPLETED FormInstanceStateCompleted CANCELLED FormInstanceStateCancelled
{
"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"
}
],
"effects": [
{
"effectType": "HIDE",
"config": {
"defaultValueLabel": "Access to Remove",
"element": 8110662963316867
}
}
]
}
],
"formData": {
"department": "Engineering"
},
"formDefinitionId": "49841cb8-00a5-4fbd-9888-8bbb28d48331",
"formElements": [
{
"id": "00000000-0000-0000-0000-000000000000",
"elementType": "TEXT",
"config": {
"label": "Department"
},
"key": "department",
"validations": [
{
"validationType": "REQUIRED"
}
]
}
],
"formErrors": [
{
"key": "department",
"messages": [
{
"locale": "en-US",
"localeOrigin": "DEFAULT",
"text": "This is an error"
}
],
"value": "Engineering"
}
],
"formInput": {
"input1": "Sales"
},
"id": "06a2d961-07fa-44d1-8d0a-2f6470e30fd2",
"modified": "2023-07-12T20:14:57.74486Z",
"recipients": [
{
"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"
}
An error with the request occurred
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
messages
object[]
Locale is the current Locale
LocaleOrigin holds possible values of how the locale was selected
Text is the actual text of the error message
{
"detailCode": "string",
"messages": [
{
"locale": "en-US",
"localeOrigin": "DEFAULT",
"text": "This is an error"
}
],
"statusCode": 0,
"trackingId": "string"
}
An error with the authorization occurred
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
messages
object[]
Locale is the current Locale
LocaleOrigin holds possible values of how the locale was selected
Text is the actual text of the error message
{
"detailCode": "string",
"messages": [
{
"locale": "en-US",
"localeOrigin": "DEFAULT",
"text": "This is an error"
}
],
"statusCode": 0,
"trackingId": "string"
}
An error with the user permissions occurred
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
messages
object[]
Locale is the current Locale
LocaleOrigin holds possible values of how the locale was selected
Text is the actual text of the error message
{
"detailCode": "string",
"messages": [
{
"locale": "en-US",
"localeOrigin": "DEFAULT",
"text": "This is an error"
}
],
"statusCode": 0,
"trackingId": "string"
}
An error with the item not found
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
messages
object[]
Locale is the current Locale
LocaleOrigin holds possible values of how the locale was selected
Text is the actual text of the error message
{
"detailCode": "string",
"messages": [
{
"locale": "en-US",
"localeOrigin": "DEFAULT",
"text": "This is an error"
}
],
"statusCode": 0,
"trackingId": "string"
}
An error with the request property conflicts with stored
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
messages
object[]
Locale is the current Locale
LocaleOrigin holds possible values of how the locale was selected
Text is the actual text of the error message
{
"detailCode": "string",
"messages": [
{
"locale": "en-US",
"localeOrigin": "DEFAULT",
"text": "This is an error"
}
],
"statusCode": 0,
"trackingId": "string"
}
Too many requests
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
DetailCode is the text of the status code returned
messages
object[]
Locale is the current Locale
LocaleOrigin holds possible values of how the locale was selected
Text is the actual text of the error message
TrackingID is the request tracking unique identifier
{
"detailCode": "Internal Server Error",
"messages": [
{
"locale": "en-US",
"localeOrigin": "DEFAULT",
"text": "This is an error"
}
],
"trackingId": "9cd03ef80e6a425eb6b11bdbb057cdb4"
}
An internal server error occurred
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
messages
object[]
Locale is the current Locale
LocaleOrigin holds possible values of how the locale was selected
Text is the actual text of the error message
{
"detailCode": "string",
"messages": [
{
"locale": "en-US",
"localeOrigin": "DEFAULT",
"text": "This is an error"
}
],
"statusCode": 0,
"trackingId": "string"
}