transform

POSTALL,CFO/UpdateFormDefinitionCommandsForFormId/{formId}

IN THIS PAGE

Arguments

formIdCharacter

Form definition id.

formdefinitioncommandsjsonCharacter

JSON array of form definition commands.

Returns

resultJSON Object

Returns an object with these properties:

errorboolean

true if there was an error

errorTextstring
resultobject

Description

Updates form definition commands in a TransForm form definition. The form definition commands define the structure of the TransForm form.

CURL 

CURL --insecure -H "apikey:Your_api_key" -H "content-type: application/json" -H "accept: application/json" -d "{"""formdefinitioncommandsjson""":value_of_formdefinitioncommandsjson}" "https://transform.alphasoftware.com/transformAPIVersion1.a5svc/UpdateFormDefinitionCommandsForFormId/value_of_formId"

Node 

var request = require('request')
var path = 'https://transform.alphasoftware.com/transformAPIVersion1.a5svc/UpdateFormDefinitionCommandsForFormId/value_of_formId';
var data = {"formdefinitioncommandsjson": "value_of_formdefinitioncommandsjson"};
var dataJSON = JSON.stringify(data)
request.post(
	{
		headers: {apikey: "Your_api_key"},   
		url: path, 
		form: dataJSON}, 
		function(err,httpResponse,body){
			if(err) console.log(err)
			console.log(body)
	}
)

Xbasic 

dim apikey as c = "Your_api_key"
dim postdata as c
postdata = <<%txt%
{
    "formdefinitioncommandsjson": "value_of_formdefinitioncommandsjson"
}

%txt%

dim url as c = "/UpdateFormDefinitionCommandsForFormId/value_of_formId"
dim pr as p
pr = a5dialogHelper_transformAPIQuery(url,postdata,apikey)
if pr.error = .f. then
	dim result as c 
	result = pr.result
else
	dim errorText as c 
	errorText = pr.errorText
end if