Saves the employee's emergency contact details.

Request

POST https://api.yourpayroll.com.au/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
canEdit boolean
primaryEmergencyContact object
primaryEmergencyContact.address string
primaryEmergencyContact.alternateContactNumber string
primaryEmergencyContact.contactNumber string
primaryEmergencyContact.id int32
primaryEmergencyContact.name string
primaryEmergencyContact.relationship string
secondaryEmergencyContact object
secondaryEmergencyContact.address string
secondaryEmergencyContact.alternateContactNumber string
secondaryEmergencyContact.contactNumber string
secondaryEmergencyContact.id int32
secondaryEmergencyContact.name string
secondaryEmergencyContact.relationship string

Response

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

Status code Description Resource
200 OK

OK