Share

Update an item's status - identify the item using manufacturer information

PATCH /api/erp/v1/part/mfr_part_number/{mfrPartNumber}/mfr_name/{mfrName}/status_purchased posts the updated status to Upchain and the item’s history. The item is identified using manufacturer information.

Request schema

Method URL
PATCH /api/erp/v1/part/mfr_name/{mfrName}/mfr_part_number/{mfrPartNumber}/status_purchased

Request header

*indicates required fields

Field Value type Description of values
*Authorization String Enter: Bearer access token.
*mfrPartNumber Integer Manufacturer's part number. To get this number:
  1. In the Upchain web app, open the BOM section of the project.
  2. Select the item in the BOM table to open its details pane.
The value is found in the Manufacturer Item Number field.
*mfrName String Manufacturer’s name. To get this name:
  1. In the Upchain web app, open the BOM section of the project.
  2. Select the item in the BOM table to open its details pane.
The value is found in the Manufacturer field.
*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
partStatus String Item’s new status.

Sample request

{
"partStatus": "Obsolete"
}

Response schema

Response body

Field Value type Description of values
result Integer Always 1 for a 200-http response when the item’s status is successfully updated.

Sample response

{
"result": 1
}

Was this information helpful?