Saves the employee's emergency contact details.

Request

PUT https://api.yourpayroll.co.uk/api/v2/ess/{employeeId}/emergencycontacts

Path parameters

Parameter name Value Description Additional
employeeId string Required

Request body

The request body takes a complete EmployeeEmergencyContactsEditModel resource, containing the following writable properties:

{
    "canEdit": "boolean",
    "primaryEmergencyContact": {
        "address": "string",
        "alternateContactNumber": "string",
        "contactNumber": "string",
        "id": "int32",
        "name": "string",
        "relationship": "string"
    },
    "secondaryEmergencyContact": {
        "address": "string",
        "alternateContactNumber": "string",
        "contactNumber": "string",
        "id": "int32",
        "name": "string",
        "relationship": "string"
    }
}

Properties

Name Type Description
canEdit boolean Boolean
primaryEmergencyContact object EmergencyContactEditModel
primaryEmergencyContact.address string String
primaryEmergencyContact.alternateContactNumber string String
primaryEmergencyContact.contactNumber string String
primaryEmergencyContact.id int32 Int32
primaryEmergencyContact.name string String
primaryEmergencyContact.relationship string String
secondaryEmergencyContact object EmergencyContactEditModel
secondaryEmergencyContact.address string String
secondaryEmergencyContact.alternateContactNumber string String
secondaryEmergencyContact.contactNumber string String
secondaryEmergencyContact.id int32 Int32
secondaryEmergencyContact.name string String
secondaryEmergencyContact.relationship string String

Response

The following HTTP status codes may be returned, optionally with a response resource.

Status code Description Resource
200 OK

OK

EmployeeEmergencyContactsEditModel