Function 


The Item Master Edit API is used to modify item details in the database. 



URL


{Root URL}/api/ItemMaster/Edit/{API KEY}



Parameters



ParameterDescriptionRequiredComment
1part_classPart class  NUsed to designate the new part's class. Must be a valid part class.  
2part_typePart type NUsed to designate the new part's type. Must be a valid part type. 
3part_sourcPart source NUsed to designate the new part's source. Must be a valid part source. 
4U_of_MeasUnit of measurement  NThe part's unit of measurement. Must be a valid unit of measurement in the system.
5Pur_UOfMPurchasing unit of measurement NThe part's purchasing unit of measurement. Must be a valid unit of measurement. 
6CustNo Customer identifier number NThe customer number is used to select the customer for the part.  
7CustPartNo Customer part number NUsed to set the Customer's part number. 
8CustRevCustomer revision NUsed to set the revision level on the customer part. 
9part_NoPart number NUsed to set the part number. 
10status Part status NUsed to set the part's status, and can be "active" or "inactive."
11serialYesIs the part serialized "Yes" or "No" NUse the values "true" or "false" 
12descript Description N
13uniq_key Item unique identifier key YUsed to select the item being edited. 
14abc Item abc code  YCan be A, M, or D 



Example Strings


Edit part description:


URL

  

?uniq_key=UNIQUEKEY&Description=EditedDescription&status=active&abc=D



{

uniq_key”:”UNIQUEKEY”,

Description”:”EditedDescription”,

status”:”active”,

abc”:”D

}


  

A successful Edit request will return:


{

"$id": "1",

"Code": "200",

"Message": "Inventor edited successfully.",

"SessionId": "null",

"IsValidUser": "true",

"ResponseObject": "null"

}


 

Common Errors


API Key Error


If there is an error with the entered API key, the system will return an error describing it:

  

{

"$id": "1",

"Code": "403",

"Message": "Invalid API Key.",

"SessionId": "null",

"IsValidUser": "false",

"ResponseObject": "null"

}



URL Error

  

If there is an error within the URL, the system will return an HTTP error:

  

{

"$id": "1",

"Message": "No HTTP resource was found that matches the request URI 'http://localhost/api/InventoryHandling/Receiv/123456789'.",

"MessageDetail": "No action was found on the controller 'InventoryHandling' that matches the name 'Receiv'."

}


   

Missing Required Parameter

 

If a required parameter is missing, the system will return an error describing the incorrect parameter:

 

{

"$id": "1",

"Code": "403",

"Message": "Inventor edit failed.Unique_key required.",

"SessionId": "null",

"IsValidUser": "true",

"ResponseObject": "null"

}