On January 2021 we released the version 2.3 of the FormBuilder API. This new version includes performance improvements and a better respect of HTTP protocol for RestFull APIs. All v2.0 URIs of the FormBuilder API are available in v2.3. If you are currently using the v2.0 of the FormBuilder API, we encourage you to update to the newer version. If needed, the previous version's documentation is still available here.
Parameter name | Value | Description |
---|---|---|
id |
string |
Identifier of the result. |
result |
list |
Fields of the form. |
form |
string |
Id of the result's form. Max length: 16. |
ipAddress |
string |
IP address of the client. Max length: 45. |
client |
string |
Id of the client (if exist in database, otherwise 0). Max length: 16. |
date |
string |
Date of the result. |
currentStatus |
string |
Status of the result : NEUTRAL, IN_PROGRESS, FINISHED or REOPENING |
route | object | Route of the routing |
route.type | string |
Type of action. Values: "link", "message". |
route.link | String |
For "link" type of route. The link to redirect. |
route.title | String |
For "message" type of route. The title of the message to display. |
route.message | String |
For "message" type of route. The message to display. |
Parameter name | Value | Description | Notes |
---|---|---|---|
FormItem.id |
string |
Id of the field. Can not be empty. | |
FormItem.type |
string |
Type of the field. Values:
|
|
FormItem.title |
string |
Title of the field. | |
FormItem.bind |
string |
Binding string form special fields. Values:
|
|
FormItem.bindGroup |
string |
Binding group string form special group of fields. Values:
|
|
FormItem.externalId |
string |
External identifier of this field. When this value is set up, this field would be fulfilled by HTTP query parameters on the appointment> widget. | |
FormItem.help |
string |
Help text of the field. | |
FormItem.placeholder |
string |
Placeholder of the field. | |
FormItem.mandatory |
boolean |
If the field is mandatory. | |
FormItem.visible |
boolean |
If the field is visible by client. | |
FormItem.otherValue |
boolean |
Activate or deactivate the possibility to add a custom value to the field. Available for type radio, checkbox and select. | |
FormItem.category |
boolean |
Activate or deactivate the possibility to group values by category. Available only for type select. | |
FormItem.multiple |
boolean |
Activate or deactivate the possibility to select several values. Available only for type select. | |
FormItem.fileName |
string |
(Optional) When the value is a file, a fileName can be specified. If not specified, the file will be named "file" and get the extension from the media type | |
FormItem.value |
string |
Value of the field. For multi values fields (radio, checkbox and select), use "values" instead. With file type : get and list methods will return the link to the file, for insert and update methods it is the data URI scheme binary content of the file. | |
FormItem.values |
list |
Values list of the field. Available for type radio, checkbox and select. | |
FormItem.values[].id |
string |
Identifier of the field value. | |
FormItem.values[].name |
string |
Name of the field value. | |
FormItem.values[].value |
string |
Value of the field value. | |
FormItem.values[].values |
list |
List of values of the form field value. Available only for type select with option category set to True | |
FormItem.values[].values[].id |
string |
Identifier of the form field value. Available only for type select with option category set to True | |
FormItem.values[].values[].name |
string |
Name of the form field value. Available only for type select with option category set to True | |
FormItem.values[].values[].value |
string |
Value of the form field value. Available only for type select with option category set to True | |
FormItem.valueFormat |
object |
Input rules. | |
FormItem.valueFormat.maxLength |
number |
Value maximum length. | |
FormItem.valueFormat.minLength |
number |
Value minimum length. | |
FormItem.valueFormat.regexType |
string |
Type of regex. | |
FormItem.valueFormat.regexValue |
string |
Value of regex. | |
FormItem.valueFormat.valueFormat |
string |
Type or format
|
|
FormItem.zonedDateTime |
object |
If the field is a date type, the value is formatted and returned with his timezone | Read only |
FormItem.zonedDateTime.dateTime |
object |
The value of the field formatted. For example '2011-12-03T10:15:30' | Read only |
FormItem.zonedDateTime.timeZone |
object |
The date timezone. For example 'Europe/Paris' | Read only |
FormItem.subItem |
list |
List of sub FormItem, available for crm-address field and crm-name field. |
Deletes an entry on the form result list.
Authentication is required to execute this request. Please refer to Authentication for more.
{formId}
/results/{resultId}
Parameter name | Value | Description |
---|---|---|
Path parameters | ||
formId |
string |
Form identifier. |
resultId |
string |
Result Form identifier. |
Do not supply a request body with this method.
If successful, this method returns an empty response body.
Returns an entry of the form result list.
Authentication is required to execute this request. Please refer to Authentication for more.
{formId}
/results/{resultId}
Parameter name | Value | Description |
---|---|---|
Path parameters | ||
formId |
string |
Form identifier. |
resultId |
string |
Result Form identifier. |
Do not supply a request body with this method.
If successful, this method returns a Form Result resource in the response body.
Returns entries on the form result list.
Authentication is required to execute this request. Please refer to Authentication for more.
{formId}
/results/Parameter name | Value | Description |
---|---|---|
Path parameters | ||
formId |
string |
Form identifier. |
Do not supply a request body with this method.
If successful, this method returns a response body with the following structure:
Adds an entry to the form result list.
Authentication is required to execute this request. Please refer to Authentication for more.
{formId}
/results/Parameter name | Value | Description |
---|---|---|
Path parameters | ||
formId |
string |
Form identifier. |
In the request body, supply a Form Result Resource with the following properties:
Parameter name | Value | Description |
---|---|---|
Required Properties | ||
result |
list |
Fields of the form. |
Optional Properties | ||
id |
string |
Identifier of the form. |
author |
string |
Author of the form. |
description |
string |
Description of the form. |
content |
string |
Content of the form in XML. |
submitMessage |
string |
Message of the form after validation. |
fields[] |
list |
Fields of the form. |
If successful, this method returns a Form Result resource in the response body.
Updates an entry on the form result list.
Authentication is required to execute this request. Please refer to Authentication for more.
{formId}
/results/{resultId}
Parameter name | Value | Description |
---|---|---|
Path parameters | ||
formId |
string |
Form identifier. |
resultId |
string |
Result Form identifier. |
In the request body, supply a Form Result resource with the following properties:
Parameter name | Value | Description |
---|---|---|
Optional Properties | ||
name |
string |
Name of the form. |
If successful, this method returns a Form Result resource in the response body.
Watch for form filled.
Authentication is required to execute this request. Please refer to Authentication for more.
The watch send an Result resource in the request body
{formId}
/results/watchRequired Properties | ||
address |
string |
The address where notifications are delivered for this watch. |
Optional Properties | ||
name |
string |
Name of the watch. |
basicAuth |
string |
Credentials parameters for HTTP Basic authentication on the destination watch address. Only if you use this authentication method. |
basicAuth.username |
string |
Username. |
basicAuth.password |
string |
Password. |
httpRequestHeader |
string |
Custom header parameters to send with the http request on the destination watch address. |
httpRequestHeader.name |
string |
header parameter name. |
schema |
object |
Custom json schema to apply for resource properties. |
method |
string |
HTTP Method to use for sending content. DELETE Method doesn't accept body content. |
status |
string |
Status of the watcher. Values: "enabled", "disabled" |
oauth2Auth |
string |
Credentials parameters for HTTP OAuth2 authentication on the destination watch address. Only if you use this authentication method. |
oauth2Auth.grantType |
string |
OAuth2 grant type. Values: "refresh_token" (default), "client_credentials". |
oauth2Auth.clientId |
string |
OAuth2 client id. |
oauth2Auth.refreshToken |
string |
OAuth2 refresh token. Only for grantType "refresh_token" |
oauth2Auth.authUrl |
string |
OAuth2 interactive end point to initiate the generation of the refresh token. Only for grantType "refresh_token" |
oauth2Auth.accessTokenUrl |
string |
OAuth2 end point to generation an access token from the refresh token. |
oauth2Auth.scope |
string |
OAuth2 api scope. Only for grantType "refresh_token" |
signature |
object |
Produces a crypto signature of the watched content. |
signature.enabled |
boolean |
Sets if the signature is enabled or not. |
signature.cryptoKeyIds |
list |
Arrays of string of crypto keys identifier. |
If successful, this method returns a watch resource in the response body.
With JSON, only for string value:
With string to support typed values:
Replacement string can by defined with jsonpath expressions.