Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Stay in the Know
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Create bom revision with components
I am trying to create a BOM revision with components using the Beta version of the REST API:
POST https://{ID}.suitetalk.api.netsuite.com/services/rest/record/v1/bomrevision
{
"name": "revision 2",
"billOfMaterials": {
"id": "4"
},
"component": {
"items": [
{
"item":{
"id": "6"
},
"quantity": 1
}
]
}
}
But this gives the response:
{
"type": "https://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.1",
"title": "Bad Request",
"status": 400,
"o:errorDetails": [
{
"detail": "Invalid value for the resource or sub-resource field 'item'. Provide a valid value.",
"o:errorPath": "component.items[0].item",
"o:errorCode": "INVALID_ID"
}
]
}
I am not able to figure out how to resolve this issue. The documenten page (NetSuite REST API Browser: Record API | API Reference) doesn't show the allowed fields for a bomRevision-componentElement.
0