POST api/Address/{employeeNo}
Update an employee's address The key is the Employee No
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
employeeNo |
Employee Number |
string |
Required |
Body Parameters
In request Body: Employee Address Details
AddressDetailName | Description | Type | Additional information |
---|---|---|---|
EmployeeAddressID | integer |
None. |
|
AddressLine1 |
Cannot be empty |
string |
None. |
AddressLine2 | string |
None. |
|
AddressLine3 | string |
None. |
|
Town | string |
None. |
|
County | string |
None. |
|
Postcode | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "EmployeeAddressID": 1, "AddressLine1": "sample string 1", "AddressLine2": "sample string 2", "AddressLine3": "sample string 3", "Town": "sample string 4", "County": "sample string 5", "Postcode": "sample string 6" }
application/xml, text/xml
Sample:
<AddressDetail xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebServicesRESTful.Models"> <AddressLine1>sample string 1</AddressLine1> <AddressLine2>sample string 2</AddressLine2> <AddressLine3>sample string 3</AddressLine3> <County>sample string 5</County> <EmployeeAddressID>1</EmployeeAddressID> <Postcode>sample string 6</Postcode> <Town>sample string 4</Town> </AddressDetail>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Result
ResultWithMessageName | Description | Type | Additional information |
---|---|---|---|
result |
'OK', 'Error' |
string |
None. |
message |
Returns if result is Error |
string |
None. |
returnValue | string |
None. |
Response Formats
application/json, text/json
Sample:
{ "result": "OK" } { "result": "Error", "message": "Unable to save: the..." }
application/xml, text/xml
Sample:
<ResultWithMessage> <result>OK</result> </ResultWithMessage> <ResultWithMessage> <result>Error</result> <message>Unable to save: the...</message> </ResultWithMessage>