version-profile-company-employeeId-emergency-contacts-put

PUT

Emergency Contact

Update employee emergency contact information.

 

{
      "name":{
        "firstName":"string",
        "middleName":"string",
        "lastName":"string",
      },
      "primaryContactFlag":"boolean",
      "contactRelationship":"string",
      "sameAddressPerson":"boolean",
      "address":{
        "address1":"string",
        "address2":"string",
        "address3":"string",
        "address4":"string",
        "city":"string",
        "state": "string",
        "postalCode":"string",
        "county":"string",
        "country":"string"
       },
      "samePhonePerson":"boolean",
      "telephoneNumbers":{
        "telephoneNumber1":"string",
        "telephoneNumber2":"string",
        "telephoneNumber3":"string",
        "telephoneNumber4":"string"
       }
}
Field Req Description

firstName

yes

First name of emergency contact

middleName

no

Middle name of emergency contact

lastName

yes

Last name of emergency contact

primaryContactFlag

yes

Whether this is the primary emergency contact

contactRelationship

yes

Relationship to the employee

sameAddressPerson

yes

Whether the emergency contact has the same address as the employee

Address1

yes

Address line 1

Address2

no

Address line 2

Address3

no

Address line 3

Address4

no

Address line 4

City

yes

City

State

yes

State or province

postalCode

yes

ZIP or postal code

County

no

County

Country

yes

Country

Values: CA (for Canada), US (for United States)

samePhonePerson

yes

Whether the emergency contact has the same phone number as the employee

telephoneNumber1

no

Phone number 1

telephoneNumber2

no

Phone number 2

telephoneNumber3

no

Phone number 3

telephoneNumber4

no

Phone number 4

Resource URL

https://api.trinet.com /{version}/profile/{company}/{employeeId}/emergency-contacts

Body Parameters


Name Values Description
body
(required)

Request Body

HTTP Basic

OAuth 2.0

API Key

Reset

Make a request and see the response.

Make a request and see the response.

Make a request and see the response.

Response Error Details

  • HTTP Code
    Error Code
    Description
  • 400

  • 401

  • 403

  • 404

Resource Summary

Security:

Content Type:

application/json

Scope:

hr-personal-write

Working...