Skip to main content

Update Student Emergency Contact

PUT 

/students/:communityId/emergency-contact/:emergencyContactId

This endpoint updates a student’s emergency contact information including personal details and contact details.

If the emergency contacts are also existing community members, then only ‘contact order' will be able to be updated. If you are trying to update the contacts other details you will need to use the PUT Community Member endpoint.

Request

Path Parameters

    communityId uuidrequired

    Student id

    Example: 46cb5481-6e20-4f17-b947-db81cdce9a4f
    emergencyContactId uuidrequired

    Emergency contact id

    Example: 08b01352-2678-4e8a-bb40-b78696bf9128

Body

    oneOf
    contactType stringrequired
    swapEmergencyContactOrder numbernullablerequired

    The swapEmergencyContactOrder property is required if you need to update the emergency contact order. When provided, it will swap the contact order with the other emergency contact.

Responses

Schema
    code stringrequired

    Status Code

    data object
    id uuidrequired
    contactCommunityId uuidnullablerequired
    contactOrder integerrequired
    name stringrequired
    schoolId stringnullablerequired
    relationship objectnullablerequired
    id uuidrequired
    description stringrequired
    code stringrequired
    phones object[]required
  • Array [
  • phone stringrequired
    phoneOrder numberrequired

    Possible values: [1, 2]

    Can only be for Phone (1) and Alt Phone (2)

    id uuidrequired
  • ]
  • email stringnullablerequired
    address stringnullablerequired
Loading...