The value attribute is a date as a string, in the format yyyy-mm-dd.
Updating date
Follow the same instructions as Filling a date to overwrite the existing date.
Clearing date
To delete the date, use the Create field value API and set the value attribute to null.
User field
Filling a user/group
Use the Create field value API. The value attribute is a JSON object or an array of JSON objects, representing either a user or a group.
Alternatively, you can use the Update field value API and specify a single user or group instead of all of them. This will effectively append a value to the existing values instead of overwriting them.
Deleting a user/group
Use the Delete field value API. The value attribute is a JSON object representing the user or group you wish to delete
To add more values, the same API can be used. It will not overwrite existing values.
Select existing record
Use the Create field value API. The value attribute is an array of record ID's. This will overwrite any existing records present in the field.
Alternatively, you can use the Update field value API and specify a single record ID. This will "append" a value to the existing values, without overwriting them.
Delete conversation
To delete all the values, use the Create field value API and set the value attribute to null or [].
To delete a single value, use the Delete field value API and specify the value to be deleted in the payload.
Use the Create field value API. The value attribute is an array of objects. This will overwrite any existing records present in the field.
Alternatively, you can use the Update field value API and specify a single record ID. This will "append" a value to the existing values, without overwriting them.
Linking specific record revisions
If you set linkAllVersions to true in Create new recordand Select existing record, all of the revisions of the linked record will also be automatically linked.
To link only a specific revision, you can remove that attribute from the payload.
Delete record
To delete a single value, use the Delete field value API and specify the value to be deleted in the payload.
Filling/updating/deleting a field value inside a form
See the above examples on how to fill the different types of fields.
Filling them when they are inside a form is exactly the same, but you will need to specify the formId query parameter when calling any of the APIs.
The responses of Update field value and Get field value APIs for a form field will include two identifiers which might be confusing to distinguish.
templateId
This is the ID of the form template. It will remain constant throughout the form instances, across chatrooms.
This is the ID you should use when creating a form instance.
id
This is the ID of the unique, individual form instance.
This is the ID you should use when filling a field inside a form.
Deleting a form instance
Use the Delete field value API and specify the form instance ID in the payload.