How to set the value of a custom segment field on a record using the REST API?
Hello everyone!
The title says it all, I’ve been struggling with this issue for a while now and looking everywhere for some sort of documentation.
I have a custom segment of type list/record that is applicable to my sales order items.
I am creating sales orders using the REST API and everything works fine except when trying to set the value for the aforementioned custom segment field…
I tried a bunch of things in the vein of:
{“cseg_cust_segment”: VALUE_ID}
{“cseg_cust_segment”: {“id”: VALUE_ID}}
I get no errors and the call is successful but the field is never populated…
If anyone could point me in the right direction that would be awesome!
I recall helping somebody with this recently but I can’t remember the solution.
I think we started by making a GET request on a record with this detail populated. Are you able to share how it looks when returned from NetSuite in this way?



