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
Student id
Emergency contact id
- application/json
Body
- StudentEmergencyContactWithCommunityMemberBody
- StudentEmergencyContactWithoutCommunityMemberBody
- Array [
- ]
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.
Possible values: non-empty
relationship objectnullable
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.
phones object[]nullable
Possible values: [1
, 2
]
Can only be for Phone (1) and Alt Phone (2)
Responses
- 200
- 400
- 401
- 403
- 404
- 422
- 500
- application/json
- Schema
- Example (from schema)
- Successful
Schema
- Array [
- ]
Status Code
data object
relationship objectnullablerequired
phones object[]required
Possible values: [1
, 2
]
Can only be for Phone (1) and Alt Phone (2)
{
"code": "OK",
"data": {
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"contactCommunityId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"contactOrder": 0,
"name": "string",
"schoolId": "string",
"relationship": {
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"description": "string",
"code": "string"
},
"phones": [
{
"phone": "string",
"phoneOrder": 1,
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
],
"email": "string",
"address": "string"
}
}
{
"code": "OK",
"data": [
{
"name": "Mrs Jennifer Ngyuen",
"address": "123 Education Avenue, Australia",
"email": "mtuemail@email.com",
"contactOrder": 1,
"id": "eac8f3b6-3320-4519-a84a-03b869a3f063",
"schoolId": "17",
"contactCommunityId": null,
"phones": [
{
"phone": "0456789012",
"phoneOrder": 1,
"id": "a4992bce-63e1-4116-8f72-f3a2d3ea09ed"
}
],
"relationship": {
"id": "82a757fb-7442-42d5-b239-48dbce193920",
"description": "Mother",
"code": "MO"
}
}
]
}
Bad Request
- application/json
- Schema
- Example (from schema)
- Example
Schema
- Array [
- ]
errors object[]required
{
"errors": [
{
"code": "string",
"message": "string"
}
]
}
{
"errors": [
{
"code": "PA1100",
"message": "Bad Request"
}
]
}
Unauthorized
- application/json
- Schema
- Example (from schema)
- Example
Schema
- Array [
- ]
errors object[]required
{
"errors": [
{
"code": "string",
"message": "string"
}
]
}
{
"errors": [
{
"code": "PA1101",
"message": "Unauthorized"
}
]
}
Forbidden
- application/json
- Schema
- Example (from schema)
- Example
Schema
- Array [
- ]
errors object[]required
{
"errors": [
{
"code": "string",
"message": "string"
}
]
}
{
"errors": [
{
"code": "PA1102",
"message": "Forbidden"
}
]
}
Resource not found
- application/json
- Schema
- Example (from schema)
- Example
Schema
- Array [
- ]
errors object[]required
{
"errors": [
{
"code": "string",
"message": "string"
}
]
}
{
"errors": [
{
"code": "PA1103",
"message": "Not Found"
}
]
}
Unprocessable entity
- application/json
- Schema
- Example (from schema)
- Example
Schema
- Array [
- ]
errors object[]required
{
"errors": [
{
"code": "string",
"message": "string"
}
]
}
{
"errors": [
{
"code": "PA1108",
"message": "Unprocessable Entity"
}
]
}
Internal Server Error
- application/json
- Schema
- Example (from schema)
- Example
Schema
- Array [
- ]
errors object[]required
{
"errors": [
{
"code": "string",
"message": "string"
}
]
}
{
"errors": [
{
"code": "PA1109",
"message": "Internal Server Error"
}
]
}