Clone Form
Creates a cloned copy of an existing form.
curl --request POST 'https://api.globalpatron.com/api/restricted/form/{4ee2bb21-2260-4e43-854c-94da49c13d84}/clone' \
--header 'TokenId: XXXXX' \
--header 'TokenSecret: XXXXX'
{ "id": "da94b960-4822-4447-bc3f-9ff8b65af8a6", "message": "Form cloned successfully", "action_successful": true, "error": "" }
Notes
The response "id" property is the "id" of the newly created form
Update Form - Conditional Logic Settings
Updates the conditional logic settings of an existing form.
curl --request POST 'https://api.globalpatron.com/api/restricted/form/{80da8cb8-8aac-4911-8167-5ce887823387}/?updateSettingsOnly=1&settingsSection=conditionallogicsettings' \
--header 'TokenId: XXXXX' \
--header 'TokenSecret: XXXXX' \
--header 'Content-Type: application/json' \
--data '{ JSON_PAYLOAD_HERE }'
{ "id": "", "message": "Form updated successfully", "action_successful": true, "error": "" }
Update Form - Quantity Limit & Inventory Settings
Updates the quantity limit and inventory settings of an existing form.
curl --request POST 'https://api.globalpatron.com/api/restricted/form/{80da8cb8-8aac-4911-8167-5ce887823387}/?updateSettingsOnly=1&settingsSection=quantitylimitsettings' \
--header 'TokenId: XXXXX' \
--header 'TokenSecret: XXXXX' \
--header 'Content-Type: application/json' \
--data '{ JSON_PAYLOAD_HERE }'
{ "id": "", "message": "Form updated successfully", "action_successful": true, "error": "" }
Update Form - Calculated Fields Settings
Updates the calculated fields of an existing form.
curl --request POST 'https://api.globalpatron.com/api/restricted/form/{80da8cb8-8aac-4911-8167-5ce887823387}/?updateSettingsOnly=1&settingsSection=calculatedfieldsettings' \
--header 'TokenId: XXXXX' \
--header 'TokenSecret: XXXXX' \
--header 'Content-Type: application/json' \
--data '{ JSON_PAYLOAD_HERE }'
{ "id": "", "message": "Form updated successfully", "action_successful": true, "error": "" }
Update Form - Payment Settings
Updates the payment settings of an existing form.
curl --request POST 'https://api.globalpatron.com/api/restricted/form/{80da8cb8-8aac-4911-8167-5ce887823387}/?updateSettingsOnly=1&settingsSection=paymentsettings' \
--header 'TokenId: XXXXX' \
--header 'TokenSecret: XXXXX' \
--header 'Content-Type: application/json' \
--data '{ JSON_PAYLOAD_HERE }'
{ "id": "", "message": "Form updated successfully", "action_successful": true, "error": "" }
Update Form - Security Settings
Updates the security settings of an existing form.
curl --request POST 'https://api.globalpatron.com/api/restricted/form/{80da8cb8-8aac-4911-8167-5ce887823387}/?updateSettingsOnly=1&settingsSection=securitysettings' \
--header 'TokenId: XXXXX' \
--header 'TokenSecret: XXXXX' \
--header 'Content-Type: application/json' \
--data '{ JSON_PAYLOAD_HERE }'
{ "id": "", "message": "Form updated successfully", "action_successful": true, "error": "" }
Update Form - Data Destination Settings
Updates the data destination settings of an existing form.
curl --request POST 'https://api.globalpatron.com/api/restricted/form/{80da8cb8-8aac-4911-8167-5ce887823387}/?updateSettingsOnly=1&settingsSection=destinationsettings' \
--header 'TokenId: XXXXX' \
--header 'TokenSecret: XXXXX' \
--header 'Content-Type: application/json' \
--data '{ JSON_PAYLOAD_HERE }'
{ "id": "", "message": "Form updated successfully", "action_successful": true, "error": "" }
Update Form - Thanks Page Settings
Updates the thanks page settings of an existing form.
curl --request POST 'https://api.globalpatron.com/api/restricted/form/{80da8cb8-8aac-4911-8167-5ce887823387}/?updateSettingsOnly=1&settingsSection=thankspagesettings' \
--header 'TokenId: XXXXX' \
--header 'TokenSecret: XXXXX' \
--header 'Content-Type: application/json' \
--data '{ JSON_PAYLOAD_HERE }'
{ "id": "", "message": "Form updated successfully", "action_successful": true, "error": "" }
Update Form - Confirmation Email Settings
Updates the confirmation email settings of an existing form.
curl --request POST 'https://api.globalpatron.com/api/restricted/form/{80da8cb8-8aac-4911-8167-5ce887823387}/?updateSettingsOnly=1&settingsSection=confirmationemailsettings' \
--header 'TokenId: XXXXX' \
--header 'TokenSecret: XXXXX' \
--header 'Content-Type: application/json' \
--data '{ JSON_PAYLOAD_HERE }'
{ "id": "", "message": "Form updated successfully", "action_successful": true, "error": "" }
Update Form - Dynamically Populated Droplists Settings
Updates the settings for all dynamically populated droplists of an existing form.
curl --request POST 'https://api.globalpatron.com/api/restricted/form/{80da8cb8-8aac-4911-8167-5ce887823387}/?updateSettingsOnly=1&settingsSection=dynamicdatafieldsettings' \
--header 'TokenId: XXXXX' \
--header 'TokenSecret: XXXXX' \
--header 'Content-Type: application/json' \
--data '{ JSON_PAYLOAD_HERE }'
{ "id": "", "message": "Form updated successfully", "action_successful": true, "error": "" }
Update Form - Datalist Logic Settings
Updates the datalist logic of an existing form.
curl --request POST 'https://api.globalpatron.com/api/restricted/form/{80da8cb8-8aac-4911-8167-5ce887823387}/?updateSettingsOnly=1&settingsSection=privatedatalistlogicsettings' \
--header 'TokenId: XXXXX' \
--header 'TokenSecret: XXXXX' \
--header 'Content-Type: application/json' \
--data '{ JSON_PAYLOAD_HERE }'
{ "id": "", "message": "Form updated successfully", "action_successful": true, "error": "" }
Update Form - General Settings
Updates the general settings of an existing form such as the name, description, Google analytics, and whether the form is disabled or not.
curl --request POST 'https://api.globalpatron.com/api/restricted/form/{80da8cb8-8aac-4911-8167-5ce887823387}/?updateSettingsOnly=1&settingsSection=generalsettings' \
--header 'TokenId: XXXXX' \
--header 'TokenSecret: XXXXX' \
--header 'Content-Type: application/json' \
--data '{ JSON_PAYLOAD_HERE }'
{ "id": "", "message": "Form updated successfully", "action_successful": true, "error": "" }
List Accessible Forms
Retrieves a list of all forms that you have access to in your account, including the access levels for those forms
curl --request GET 'https://api.globalpatron.com/api/restricted/user/form' \
--header 'TokenId: XXXXX' \
--header 'TokenSecret: XXXXX'
{ "results": [ { "form_configuration": { "settings": { "form_name": "My first conversational form", "form_description": "This form has a description", "form_type": "conversational", "form_system_version": 2 } }, "id": "11111111-1111-1111-1111-111111111111", "created_date_utc": "2023-01-25T01:53:16.5721153Z", "modified_date_utc": "2023-10-25T03:19:08.9169382Z" }, { "form_configuration": { "settings": { "form_name": "My first classic form", "form_type": "classicsingle", "form_system_version": 2 } }, "id": "22222222-2222-2222-2222-222222222222", "created_date_utc": "2023-05-23T05:36:11.5262493Z", "modified_date_utc": "2023-10-25T12:35:07.8479111Z" }, { "form_configuration": { "settings": { "form_name": "My second classic form", "form_description": "This form has a description", "form_type": "classicsingle", "form_system_version": 2 } }, "id": "33333333-3333-3333-33333-33333333333", "created_date_utc": "2023-07-25T02:25:59.5289813Z", "modified_date_utc": "2023-10-25T13:16:18.5356039Z" } ], "accessible_form_ids_edit_access": [ "11111111-1111-1111-1111-111111111111", "22222222-2222-2222-2222-222222222222", "33333333-3333-3333-33333-33333333333" ], "accessible_form_ids_account_management_access": [ "22222222-2222-2222-2222-222222222222" ], "accessible_form_ids_full_reporting_access": [ "33333333-3333-3333-33333-33333333333" ] }
Retrieve Form JSON (For Render)
Retrieves the JSON definition of a form for rendering view
curl --request GET 'https://api.globalpatron.com/api/form/{09e76904-4a01-4141-9c21-95c1843b4dd0}' \
--header 'TokenId: XXXXX' \
--header 'TokenSecret: XXXXX'
{ "form_definition": { ... } }
Delete Form
Deletes an existing form.
curl --request POST 'https://api.globalpatron.com/api/restricted/form/{80da8cb8-8aac-4911-8167-5ce887823387}/?updateSettingsOnly=1&settingsSection=generalsettingsdelete' \
--header 'TokenId: XXXXX' \
--header 'TokenSecret: XXXXX'
{ "id": "", "message": "Form updated successfully", "action_successful": true, "error": "" }