The Emergency Contact API allows users to retrieve all emergency contacts for a given employee.
Resource URL| Example Request | |
| GET | https://serverurl/api/v1.1/employee/26/emergency |
| Return Value |
| Http header "Accept" value -- "text/xml" or "application/xml" will return XML, otherwise JSON will be returned. |
| XML | <emergencyContacts xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| JSON |
{ "emergencyContacts": [ { "name": "Jerome James", "relation": "Spouse", "work_phone": "(206) 465-4846", "home_phone": "(206) 465-4846", "other_phone": "" }, { "name": "Sarah Lockard", "relation": "Spouse", "work_phone": "(469) 324-5486", "home_phone": "(469) 324-5486", "other_phone": "( ) - x" } ] } |
| |
| Resource Information | |
| Requires Authentication? | Yes |
| Response Formats | json xml |
| HTTP Methods | GET |
| Request Content | N/A |
| Return Code | 200: Response Completed 403: Incorrect Authorization 400: Bad Data 404: Employee does not exist |
| API Version | v1.1 only |