Hi guys, new here... I have a question about POSTi...
# general
y
Hi guys, new here... I have a question about POSTing an assemblyBuild using the REST API Here is the object I'm sending in the body: {     "item": {         "displayName": "<display_name>",         "id": "1682",         "itemId": "06-01"     },     "quantity": 11.0,     "memo": "THIS IS AN TEST",     "location": {         "id": "1",         "subsidiary": "1",         "name": "<name>"     },     "subsidiary": {         "id": "1",         "name": "Parent Company"     } } ``````
b
make the matching assembly build in the ui
then do a GET on it to see which fields you need to set
y
I'll try this right now...
@battk I need to add components to the assembly build is what I found out. However, when I try to use the same components that were used in a Netsuite GUI assembly build, I get this error: "Error while accessing a resource. You have attempted an invalid sublist or line item operation. You are either trying to access a field on a non-existent line or you are trying to add or remove lines from a static sublist."
b
Working with Sublists is usually a game of find the key field
with the general warning that anything that is a beta record has a chance that there is no key field implemented yet