Skip to content

Instantly share code, notes, and snippets.

@rahatarmanahmed
Forked from zackurben/gist:756b2ee761d83bb3d4f9
Last active September 18, 2015 15:34
Show Gist options
  • Save rahatarmanahmed/ebaad4478c5c454a7f01 to your computer and use it in GitHub Desktop.
Save rahatarmanahmed/ebaad4478c5c454a7f01 to your computer and use it in GitHub Desktop.
Update Example
var request = require('request');
request(
{
url: 'https://{projectname}.form.io/{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