api/StockStatus/Update (POST)
Updates an existing Stock Status using the supplied update data.
HTTP Method: POST
Required Fields: STORES_CODE, PART_ID to locate the record and at least one other field to update
Requires an Authentication Token in the AuthToken HTTP header. Authentication Tokens are obtained from api/Security/Login (POST).
Returns the updated Stock Status.
Request Information
Parameters
| Name | Description | Additional information |
|---|---|---|
| RequestData | This is a JSON object containing Stock Status update data.
Update Stock Status Example:
{
"STORES_CODE": "MS",
"PART_ID": "MOTOR003",
"SAFETY_STOCK": "10"
}
Returns 1 Stock Status if successful.
This is like 'Edit' in Expandable.
Accepted Stock Status Fields:
COUNT_DAYS, ICFSS_USER_1, ICFSS_USER_10, ICFSS_USER_11,
ICFSS_USER_12, ICFSS_USER_2, ICFSS_USER_3, ICFSS_USER_4,
ICFSS_USER_5, ICFSS_USER_6, ICFSS_USER_7, ICFSS_USER_8,
ICFSS_USER_9, KANBAN_FREQ, KANBAN_QTY, MULTI_LOC,
PART_ID, SAFETY_STOCK, STOCK_LOCATION, STORES_CODE |
Define this parameter in the request body. |
Response Information
Success:200/OK
Body contains JSON object with updated Stock Status.
Error:
400/Request JSON is invalid.
401/AuthToken was not provided.
401/AuthToken is malformed.
401/AuthToken is expired.
401/AuthToken login failure.
500/(Message)
Body contains JSON object with Message and MessageCode.
Returned Stock Status Fields:
ADJUSTMTS_MTD, ADJUSTMTS_YTD, BOOK_QTY, COUNT_DAYS, CREATED_BY, DATE_CREATED, DATE_LAST_ACT, DATE_LAST_ISSUE, DATE_LAST_PHY, DATE_LAST_PRINT, DATE_LAST_RECPT, DATE_LAST_UPDT, DATE_MODIFIED, ICFSS_USER_1, ICFSS_USER_10, ICFSS_USER_11, ICFSS_USER_12, ICFSS_USER_2, ICFSS_USER_3, ICFSS_USER_4, ICFSS_USER_5, ICFSS_USER_6, ICFSS_USER_7, ICFSS_USER_8, ICFSS_USER_9, ISSUES_MTD, ISSUES_YTD, KANBAN_FREQ, KANBAN_QTY, MO_BEG_QTY, MODIFIED_BY, MULTI_LOC, ON_HAND_QTY, OPERATOR_ID, PART_ID, PHYSICAL_QTY, PREV_YR_ISSUES, RECEIPTS_MTD, RECEIPTS_YTD, SAFETY_STOCK, STOCK_LOCATION, STORES_CODE, TIME_LAST_UPDT, YEAR_BEG_QTY