Relationships
A relationship defines the kind of association between a student and a parent
This endpoint retrieves all children relationships of parent
Your V2 API authentication token may be passed in the parameters. To protect your key, use environment variables.
An integer of child's Parent ID
An integer defining which page to display.
An integer defining the number of records to display per page.
Success
GET /v2p0/parents/{parent_id}/children HTTP/1.1
Host: api.devel.managebac.com
Accept: */*
Success
{
"children": [
{
"id": 1,
"relationship": "Mother"
}
],
"meta": {
"current_page": 1,
"total_pages": 1,
"total_count": 1,
"per_page": 100
}
}This endpoint creates parent-child relationship
Your V2 API authentication token may be passed in the parameters. To protect your key, use environment variables.
An integer of child's Parent ID
Created
Unprocessable entity
POST /v2p0/parents/{parent_id}/children HTTP/1.1
Host: api.devel.managebac.com
Content-Type: application/json
Accept: */*
Content-Length: 42
{
"child": {
"id": 1,
"relationship": "Mother"
}
}{
"child": {
"id": 1,
"relationship": "Mother"
}
}This endpoint updates all parent-children relationships
Your V2 API authentication token may be passed in the parameters. To protect your key, use environment variables.
An integer of child's Parent ID
Success
Unprocessable entity
PUT /v2p0/parents/{parent_id}/children HTTP/1.1
Host: api.devel.managebac.com
Content-Type: application/json
Accept: */*
Content-Length: 47
{
"children": [
{
"id": 1,
"relationship": "Mother"
}
]
}{
"children": [
{
"id": 1,
"relationship": "Mother"
},
{
"id": 2,
"relationship": "Brother"
}
]
}This endpoint retrieves all information about child relationship to parent
Your V2 API authentication token may be passed in the parameters. To protect your key, use environment variables.
An integer of child's Parent ID
An integer of child ID
Success
Not found
GET /v2p0/parents/{parent_id}/children/{id} HTTP/1.1
Host: api.devel.managebac.com
Accept: */*
{
"child": {
"id": 1,
"relationship": "Mother"
}
}This endpoint updates parent-child relationship
Your V2 API authentication token may be passed in the parameters. To protect your key, use environment variables.
An integer of child's Parent ID
An integer of child ID
Success
Not found
Unprocessable entity
PUT /v2p0/parents/{parent_id}/children/{id} HTTP/1.1
Host: api.devel.managebac.com
Content-Type: application/json
Accept: */*
Content-Length: 35
{
"child": {
"relationship": "Mother"
}
}{
"child": {
"id": 1,
"relationship": "Mother"
}
}This endpoint removes child relationship to parent
Your V2 API authentication token may be passed in the parameters. To protect your key, use environment variables.
An integer of child's Parent ID
An integer of child ID
No content
Not found
DELETE /v2p0/parents/{parent_id}/children/{id} HTTP/1.1
Host: api.devel.managebac.com
Accept: */*
No content
Last updated
Was this helpful?

