Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function setTheProps(appId, lastModifiedDate){
- var jsonArr = [];
- jsonArr.push({
- modifiedDate: lastModifiedDate, //this is the modifiedDate retrieved from the app
- modifiedByUserName: "my\un",
- value: "Node C"
- });
- console.log(props);
- console.log(jsonArr);
- trt.Put('/app/' + appId,
- {
- "modifiedDate": lastModifiedDate, // this is key, and is what's causing the 409 CONFLICT if missing
- "customProperties":
- jsonArr
- },
- 'json'
- ).then(function(result)
- {
- console.log(result.body);
- })
- .catch(function(error)
- {
- console.log('node customProps error: ' +error);
- process.exit(0);
- });
- }
Add Comment
Please, Sign In to add comment