api/VendorContact/Update (POST)
Updates an existing Vendor Contact using the supplied update data.
HTTP Method: POST
Required Fields: VENDOR_ID, VENDOR_CONTACT 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 Vendor Contact.
Request Information
Parameters
| Name | Description | Additional information |
|---|---|---|
| RequestData | This is a JSON object containing Vendor Contact update data.
Update Vendor Contact Example:
{
"VENDOR_ID": "XYZCORP",
"VENDOR_CONTACT": "SGREEN",
"E_MAIL": "sgreen@xyzcorp.com",
"NOTES": "Notes can be up to 32,765 characters long.",
"ATTACHMENTS": "http://www.expandable.com/|C:\\Expandable.docx"
}
Returns 1 Vendor Contact if successful.
This is like 'Edit' in Expandable.
Accepted Vendor Contact Fields:
ATTACHMENTS, ADDRESS_1, ADDRESS_2, ADDRESS_3,
CELL_PHONE_NO, CITY, CONTACT_STATUS, COUNTRY,
E_MAIL, E_MAIL_2, FAX_NO, FIRST_NAME,
INITIAL, LAST_NAME, MAIL_STOP, NOTES,
PAGER_NO, PHONE_NO, POFCT_USER_1, POFCT_USER_2,
POFCT_USER_3, POFCT_USER_4, POFCT_USER_5, POFCT_USER_6,
POFCT_USER_7, POFCT_USER_8, POFCT_USER_9, POFCT_USER_10,
POFCT_USER_11, POFCT_USER_12, POFCT_USER_13, POFCT_USER_14,
POFCT_USER_15, POFCT_USER_16, STATE, TITLE,
VENDOR_CONTACT, VENDOR_ID, WEB_ADDRESS, ZIP_CODE |
Define this parameter in the request body. |
Response Information
Success:200/OK
Body contains JSON object with updated Vendor Contact.
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 Vendor Contact Fields:
ATTACHMENTS, ADDRESS_1, ADDRESS_2, ADDRESS_3, CELL_PHONE_NO, CITY, CONTACT_STATUS, COUNTRY, CREATED_BY, DATE_CREATED, DATE_LAST_UPDT, DATE_MODIFIED, E_MAIL, E_MAIL_2, FAX_NO, FIRST_NAME, INITIAL, LAST_NAME, MAIL_STOP, MODIFIED_BY, NOTES, OPERATOR_ID, PAGER_NO, PHONE_NO, POFCT_USER_1, POFCT_USER_2, POFCT_USER_3, POFCT_USER_4, POFCT_USER_5, POFCT_USER_6, POFCT_USER_7, POFCT_USER_8, POFCT_USER_9, POFCT_USER_10, POFCT_USER_11, POFCT_USER_12, POFCT_USER_13, POFCT_USER_14, POFCT_USER_15, POFCT_USER_16, STATE, TIME_LAST_UPDT, TITLE, VENDOR_CONTACT, VENDOR_ID, WEB_ADDRESS, ZIP_CODE