How to add custom choice to a field using REST api?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-05-2017 05:10 AM
I want to add custom option or update the value of the option incase it is already there using REST api.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-05-2017 05:16 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-05-2017 05:20 AM
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