Relationships
This page describes all the APIs relating to relationships.
Retrieve all student-parent relationships in the school.
This endpoint returns a paginated list of students with their associated parent IDs, providing a mapping of family relationships within the school system.
The response includes:
Student ID and their associated parent IDs
Pagination metadata
This is useful for understanding family structures and parent-child relationships.
The page number of results to return.
1Request for how many records to return.
50Synonym for per_page
successful
Unauthorized
Forbidden
GET /api/v3/relationships HTTP/1.1
Host: api.openapply.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"relationships": [
{
"parent_id": 1,
"student_ids": [
1
],
"relationships": [
{
"student_id": 1,
"relationship": "text"
}
]
}
],
"meta": {
"pages": 1,
"per_page": 1
}
}Fetch the associated children to the given parent
Serial database ID used to refer to a unique parent record in OpenApply
successful
Unique identifier for the parent
Array of student IDs associated with this parent
parent not found
GET /api/v3/relationships/parent/{id} HTTP/1.1
Host: api.openapply.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"parent_id": 1,
"student_ids": [
1
],
"relationships": [
{
"student_id": 1,
"relationship": "text"
}
]
}Update the relationships between a parent and their children. Accepts an array of relationship objects, each specifying a student_id and an optional relationship role.
Serial database ID used to refer to a unique parent record in OpenApply
successful
Array of student IDs associated with this parent
unprocessable entity
PUT /api/v3/relationships/parent/{id} HTTP/1.1
Host: api.openapply.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 58
{
"relationships": [
{
"student_id": 1,
"relationship": "text"
}
]
}{
"student_ids": [
1
],
"relationships": [
{
"student_id": 1,
"relationship": "text"
}
]
}Fetch the associated parents and relationship roles for the given student.
Serial database ID used to refer to a unique student record in OpenApply
successful
Unique identifier for the parent
Array of student IDs associated with this parent
student not found
GET /api/v3/relationships/student/{id} HTTP/1.1
Host: api.openapply.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"parent_id": 1,
"student_ids": [
1
],
"relationships": [
{
"student_id": 1,
"relationship": "text"
}
]
}Last updated