POST api/Company/Lookup/{description}/{value}
Add a new record for the given lookup description
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
description |
Department, Division, Cost Centre, Job Title, Title, Method of Payment |
string |
Required |
value | string |
Required |
Body Parameters
None.
Response Information
Resource Description
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>