Scenario: if a user needs to update the RMA record, we can use the method ‘PATCH’ in RESTLET.
Method: PATCH
End point URL: https://[account id].suitetalk.api.netsuite.com/services/rest/record/v1/returnAuthorization/[RMA record id]
sample: https://123456-sb1.suitetalk.api.netsuite.com/services/rest/record/v1/returnAuthorization/123
Request body:
{
"item": {
"items": [
{
"line": 2,
"quantity": 1
}
]
}
}
Here, when you provide the request body, then when we send the request, the RMA record will be updated by modifying the 2nd line of the RMA record by changing the quantity to ‘1’.