Create Forms
Description: To create a form, a HTTP POST request is made to the URL with the form ID and session token.
Method: POST
URI: /forms/
URI Parameters:
- form_id: The ID of the form.
Required Parameters:
- name: Name of the form.
- template_id: Unique ID of the template that the form will be created from.
Parameters
- private: Whether the form is private or not. If this property is not passed, the users default preference will be used.
Headers: Authorization: Third party based authorization header
Returns
Field | Type | Description |
---|---|---|
template_version_id | Integer | Unique ID of the template version of the template the form is made from. |
agency_id | Integer | Unique ID of the agency the form belongs to. |
user_id | Integer | Unique ID of the user that created the form. |
name | String | Name of the form. |
template | Boolean | Returns true if the form is a template. |
deleted | Boolean | Returns true if the form is deleted. |
finalised | Boolean | Returns true if the form is finalised. |
private | Boolean | Returns true if the form is private. |
created | Timestamp | Returns Unix timestamp of when form was created. |
updated | Timestamp | Returns Unix timestamp of when form was updated. |
Example
Request
Response