7 Replies · Latest reply on Jul 17, 2017 6:29 AM by Anthony Barratt

    Updating cost_center using REST API

      Hi Guys,

       

      I am trying to update the cost center, location of a user in ServiceNow(Geneva) using REST api. I am using

      https://devxxxxx.service-now.com/api/now/v1/import/(table) with POST type.

      My input is

      {

          "cost_center":" ",

          "user_sys_id":"<user-id>"

      }

       

      This gives me "No field values changed" message. When I change the type to patch with the following url

      https://devxxxxx.service-now.com/api/now/v1/import/(table)/<user-id>

      I get "Method not Supported" message.I even tried with X-http-method-override but it wasn't helpful. I went through this doc but was not able to understand what I was doing wrong. Please advice.