Created
July 17, 2015 15:25
-
-
Save randallknutson/9ba3177fab29b58b348f to your computer and use it in GitHub Desktop.
Update Example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var request = require('request'); | |
request( | |
{ | |
url: 'https://{appname}.form.io/app/api/{resourcename}/submission/{submissionId}', | |
method: 'PUT', | |
headers: { | |
'x-jwt-token': token | |
}, | |
form: { | |
{fieldname1}: value1, | |
{fieldname2}: value2 | |
} | |
} | |
function (error, response, body) { | |
if (!error && response.statusCode == 200) { | |
console.log(body); | |
} | |
} | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment