
Anonymous Community User asked a question.
Javascript, Update Item field value
Can you give us an example of a properly formatted javascript request that works with the podio-js client library for updating an item's field value? The docs essentially run in circles and looking at the ruby/php code it seems that there is an options object that is not mentioned anywhere in the js library for put requests. Here's what I'm trying to do: router.get('/app/put/item/field', function(req, res) { podio.isAuthenticated() .then(function(error, response, body) { var requestData = { "values": " some string 42" }; return podio.request('put', '/item/{item_id}/value/{field_id}', requestData); }) .then(function(responseData) { console.log(responseData); }) .catch(function(err) { res.send(err); });}); Thanks.