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.
Authorizations
Query parameters
pageinteger · min: 1OptionalDefault:
The page number of results to return.
1
per_pageinteger · min: 1 · max: 200OptionalDefault:
Request for how many records to return.
50
countintegerOptional
Synonym for per_page
Responses
401
Unauthorized
application/json
403
Forbidden
application/json
get
GET /api/v3/relationships HTTP/1.1
Host: api.openapply.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"error": "Unauthorized access"
}
Fetch the associated children to the given parent
Authorizations
Path parameters
idintegerRequired
Serial database ID used to refer to a unique parent record in OpenApply
Responses
200
successful
application/json
404
parent not found
get
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
]
}
Was this helpful?