GET /FormTemplates
Get a list of form templates.
Query Parameters
| Parameter | Type | Description |
|---|
| form_status | String | Form release status. |
| status | String | Form release status. |
| sort | String | The name of a data column to sort by. |
| sortDir | String | Sort direction.- asc: Ascending order
- desc: Descending order
|
| q | String | A VisualVault REST API Data Query. |
GET /FormTemplates/{id}
Returns a form template by ID.
Route Parameters
| Parameter | Type | Description |
|---|
| id* | Guid | The form template id. |
Query Parameters
| Parameter | Type | Description |
|---|
| formstatus | String | Form release status. |
| q | String | A VisualVault REST API Data Query. |
GET /FormTemplates/{id}/forms/{childId}
Get the child form of a template.
Route Parameters
| Parameter | Type | Description |
|---|
| id* | Guid | The form template id. |
| childId* | Guid | The child form template id. |
Query Parameters
| Parameter | Type | Description |
|---|
| fields | String | List of fields to include. |
| f | String | List of requested form fields. |
| getFieldProperties | Bool | Get properties of the fields. |
| expand | Bool | Set to true to get all the form's fields.
|
| offset | String | Sets an offset to the start of the search. |
| limit | Int | Sets a limit to the number of values returned. |
GET /FormTemplates/{id}/forms/{childId}/PDF
Retrieve a child form in PDF format.
Route Parameters
| Parameter | Type | Description |
|---|
| id* | Guid | The form template id. |
| childId* | Guid | The child form template id. |
GET /FormTemplates/{id}/fields
Get the form fields of a template.
Route Parameters
| Parameter | Type | Description |
|---|
| id* | Guid | The form template id. |
GET /FormTemplates/{id}/forms
Get the form instances of a form template.
Route Parameters
| Parameter | Type | Description |
|---|
| id* | Guid | The form template id. |
Query Parameters
| Parameter | Type | Description |
|---|
| fields | String | List of fields to include. |
| getFieldProperties | Bool | Get properties of the fields. |
| expand | Bool | Set to true to get all the form's fields. |
| sort | String | The name of a data column to sort by. |
| sortDir | String | Sort direction.- asc: Ascending order
- desc: Descending order
|
| offset | String | Sets an offset to the start of the search. |
| limit | Int | Sets a limit to the number of values returned. |
| q | String | A VisualVault REST API Data Query. |
GET /FormTemplates/{id}/docInfo
Retrieve the next sequential document ID for the template.
Route Parameters
| Parameter | Type | Description |
|---|
| id* | Guid | The form template id. |
POST /FormTemplates/{id}/forms
Create a new form instance from the template.
Route Parameters
| Parameter | Type | Description |
|---|
| id* | Guid | The form template id. |
Body Parameters
| Parameter | Type | Description |
|---|
| formFields | {FieldList} | A list of field values to be saved. |
Response Codes
| Code | Description |
|---|
| 201 | Created |
POST /FormTemplates/{id}/forms/{childId}
Create a new revision of an existing form instance.
Route Parameters
| Parameter | Type | Description |
|---|
| id* | Guid | The form template id. |
| childId* | Guid | The form instance id. |
Body Parameters
| Parameter | Type | Description |
|---|
| formFields | {FieldList} | A list of field values to be saved. |
Response Codes
| Code | Description |
|---|
| 201 | Created |
GET /formtemplates/scripts/globalscripts
Get the global scripts for a form template.
Query Parameters
| Parameter | Type | Description |
|---|
| hashonly | Bool | Return only a hash code. |
GET /formtemplates/scripts/templatescripts/{id}
Get the template scripts for a form template.
Route Parameters
| Parameter | Type | Description |
|---|
| id* | Guid | The template script id. |
Query Parameters
| Parameter | Type | Description |
|---|
| hashonly | Bool | Return only a hash code. |