transform
POSTALL,CFO/UpdateFormDefinitionForFormId
Arguments
- formIdCharacter
Form definition id.
- formDefinitionCharacter
JSON object with properties to be updated in a TransForm form definition.
Returns
- resultJSON Object
Returns an object with these properties:
- errorboolean
true if there was an error
- errorTextstring
- resultobject
Description
Updates a TransForm form definition. Only properties specified in the Form Definition JSON are updated. If a form property is not specified in the input JSON object, the form property is not updated. For example, you may want to update only the form icon. Therefore the formDefinition input parameter (a JSON string) will only define the icon property.
CURL
CURL --insecure -H "apikey:Your_api_key" -H "content-type: application/json" -H "accept: application/json" -d "{"""formId""":value_of_formId,"""formDefinition""":value_of_formDefinition}" "https://transform.alphasoftware.com/transformAPIVersion1.a5svc/UpdateFormDefinitionForFormId"
Node
var request = require('request') var path = 'https://transform.alphasoftware.com/transformAPIVersion1.a5svc/UpdateFormDefinitionForFormId'; var data = {"formId": "value_of_formId","formDefinition": "value_of_formDefinition"}; 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% { "formId": "value_of_formId", "formDefinition": "value_of_formDefinition" } %txt% dim url as c = "/UpdateFormDefinitionForFormId" 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