How to insert a label_entry via REST API?

wimjongman
Kilo Contributor

Hi all,

I tried to create a label_entry via REST API, the label_entry is created but the field table_key is empty.

/api/now/table/label_entry {"label":"630086900f23320050c8cfdce1050efc","table":"incident","table_key":"7e1146100f23320050c8cfdce1050e5f","title":"Incident - INC0020001"}

Any idea why table_key   is not added?

6 REPLIES 6

Justin Abbott
Giga Guru

There is a write ACL for the table_key field. The ACL requires that the user has the maint role. This is probably what is preventing you from writing to that field.



Look for the label_entry.table_key record in your list of ACLs.


How to check the ACL Please guide

wimjongman
Kilo Contributor

Thanks, it works


Glad to help! If you feel my answer was correct, please mark it as such.