Skip to main content

Updating a custom field through API (using Postman)

  • March 15, 2023
  • 0 replies
  • 134 views

Custom field in default category outside table API update 

First step is to find an employee on your platform that has your custom field populated, once you have this copy the employee ID on the URL: 


X0zVzd1sbDegnriIq9-F3_y-h1rwrFbNz1K6gkOMXzkEZBer121a8qheGS8JwNc_N8323hQqR3ApEIjejZDueDYl-pfdEncTV-Wf5vTSDtwxocU8PDKAMoBsnb4hFgUnjxN0TkGXWsA3Z_9vEDtQw6g

Then go to our API docs and use this call here 

Paste the ID into the employee ID cell and then human readable = true 

Run the call and then copy and paste the output into a viewer such as JSON viewer 

Then search for the field that you have populated on the profile for example here is what I will copy into postman:

9iAKCrFRavKZKtOuP4ZJ-afuPT0hB0qa-4A_Jbf3ohC06fT2-MvuYLKCNOmB1fhJYo7dIe4mMNRk1-NdHrVRHWu5zGQ9EkpiEq9VAX00g5JT7uQMTzT_qgij8bxDbD3HjffnEJaIzG4gVTKxqDr4TJgThen in postman I will tidy it up to only the rows we need which will be changed to this view: onC-aQacazeNPa4tmS4nKtoJKgmVHfkA9wfAu3fkdKCmIV3jYFmLyLK5yi_m8pRNCVSkq5RNlK0HITUVK5AVNJqzBiyPITI1o9sRDXt2Q4-PeHPdBdUSx9jNBUrjsQqWJ13GeyF6iEwOB5VJClZOKUY

(This is the line of code needed but their IT or a user who is using postman will know how to enter the code) 

"custom":{ 

"field_1675186408211": "Bloomerang test" 

Although the category is Basic info we will not use this as the field we are updating is a custom value. So you will need to set the value to a custom object. This is why the start of the code is "custom" 

Before making any changes please head over to the headers tab and ensure you have removed this if this content type if it has been applied:

9-mQPL0UICUuHRJmPZiuZoN1HzIuJfLpi7onkYY5J4QMGkX0va3fRoKtMEWFVKAzXryhQTOVaDEISminIW-PYJXXvKKwsnM61Pn3KL3XmNS-6qqreWpN_tkdZe6YpcD-6w0k4U3yT5BFLkaHPfMGyEg

Then check the call and the employee ID are correct that you're importing into. Then we are good to make changes. 

Once you have changed the value in the code for example I will change it to API bloomerang test NSeEGgxUTX_l-xuUMrbxq0mBQiiqv984OO63GxLJ5ceoAB7mgy3JUfE3uh80S5VX3qMFFtLGiCaVxfWeG2wucsnE3vFsLZx9gWO5b_-wLKyRn9bujgpXhQWBkv7q-RIXF0r0e8WDNUys7sm6oHQB-Ng

This will give a 200 ok output and if we go over to bob and check the profile we ran the call for it will be updated: 

GDt6BV5Mgx4zCv9EGY12aW7O8tEcfp2bKgxle67inJky03XsLSXldKMvNjGUosmOZHkk2K3wWB0JMm2Lf91xFJpDD5PUh-ImZo9qh_csN81B1F9aVs_EI1aAsuE2AaESt0vnPsjuvkkyXLRxLVkBjIQOn the bob profile this has now been updated after a refresh:

5T3t1-ZgyfPMlvMR92BpWeOoRqmRXb-lH5EaYNgONnol1DgkjK5X2AHMq0dcXTKtkFm2IQVwGG00KJLoR5e7yrq_SityILM-xeRiThRl4sfXqSqmOp9CQxHPh-z9ebcIqT5bEFVD4un9JFC1M99iafw