Update an item’s ERP ID - identify the item using manufacturer information
PATCH /api/erp/v1/part/{partNumber}/supplier/{mfrId}
endpoint updates a part's ERP ID, in Upchain. partNumber
identifies the item.
Request schema
Method |
URL |
PATCH |
/api/erp/v1/part/{partNumber}/supplier/{mfrId} |
Field |
Value type |
Description of values |
*Authorization |
String |
Enter: Bearer access token. |
*partNumber |
Integer |
Item number recorded against an item. To get this number, open the BOM section of the project in the Upchain web app and locate the item in the BOM table. |
*mfrId |
String |
Manufacturer’s ERP number. Find the manufacturer’s ERP number listed in the Administration > Manufacturers table under the Erp number column. |
*Upc-Selected-Company |
Integer |
Company’s ID. Use the value returned in the id field received in response to the following request: GET /api/auth/v1/companies . |
X-User-Id |
Text |
Enter the email address of the user being impersonated. This value is required if you are using a two-legged token. If you are using a three-legged token, then this field is not required. |
Request body
Field |
Value type |
Description of values |
erpPartId |
String |
New part ID. |
Sample request
{
"erpPartId": "23-AX-01"
}
Response schema
Response body
Field |
Value type |
Description of values |
result |
Integer |
Always 1 for a 200-http response when the item’s id is successfully updated. |
Sample response
{
"result": 1
}