REST API Question: We are attempting to set up a ...
# general
w
REST API Question: We are attempting to set up a Location via the REST API. We have Full permission on Locations under Lists for our integration user that is making the REST calls. Within that location request body, we attempting to set
subsidiary
like so, per the API documentation…
Copy code
...
subsidiary: {
          items: [{ id: "2" }]
        },
...
This results in the error
Copy code
Failed post on resource location: Error while accessing a resource. You have entered an Invalid Field Value null for the following field: subsidiary. Error code: USER_ERROR
Everywhere else in the REST API,
id
alone is sufficient to establish a reference to another NS object. Any thoughts on what we might be doing wrong or what might be keeping us from setting the subsidiary on a location would be appreciated.
t
@Wes Gamble Do you have permission on the Subsidiaries table as well? I think you need that in order to set values in the Location Subsidiary Map table ( "locationsubsidiarymap" ), which is what I think SuiteTalk is really doing.
w
@tdietrich Full permission on Subsidiaries under List - so AFAIK, yes.
b
the usual is to assume that beta records arent ready