transform
POSTALL,EI/ChangeFormInstanceData/{formInstanceId}
Arguments
- formInstanceIdCharacter
formInstanceId of the form instance whose data should be changed
- formDataJSONCharacter
Updated form data for the form instance
- statusCharacter
updated form status - if blank, then the status is not changed
- personCharacter
person to whom form is assigned - if blank, the person is not changed
Returns
- resultJSON Object
Returns an object with these properties:
- errorboolean
true if there was an error
- errorTextstring
- resultobject
- rowsUpdated
number of rows in the forms table that were updated
Description
Edit data in an existing form instance specified by the `-formInstanceId-`.
CURL
CURL --insecure -H "apikey:Your_api_key" -H "content-type: application/json" -H "accept: application/json" -d "{"""formDataJSON""":{},"""status""":value_of_status,"""person""":value_of_person}" "https://transform.alphasoftware.com/transformAPIVersion1.a5svc/ChangeFormInstanceData/value_of_formInstanceId"
Node
var request = require('request') var path = 'https://transform.alphasoftware.com/transformAPIVersion1.a5svc/ChangeFormInstanceData/value_of_formInstanceId'; var data = {"formDataJSON": "{}","status": "value_of_status","person": "value_of_person"}; 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% { "formDataJSON": "{}", "status": "value_of_status", "person": "value_of_person" } %txt% dim url as c = "/ChangeFormInstanceData/value_of_formInstanceId" 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