How to add custom choice to a field using REST api?

dsourav
Kilo Explorer

I want to add custom option or update the value of the option incase it is already there using REST api.

2 REPLIES 2

Chuck Tomasi
Tera Patron

Hi Sourav,



You would need to have admin rights to do that and use the table API on the sys_choice table. Getting the right field values correct is critical, including table, element, label, value, sequence,   and language.



Getting Started with REST - ServiceNow Wiki


REST API Explorer - ServiceNow Wiki


REST API  


Alikutty A
Tera Sage

The Choices should be added on the sys_choice table using the Table API. When I checked the REST API explorer, the table is not available for selection. The table has web services enabled but somehow it is not accessible in the REST API.




Thanks


Please Hit like, Helpful or Correct depending on the impact of the response





sys_choice