For the complete documentation index, see llms.txt. This page is also available as Markdown.

Relationships

A relationship defines the kind of association between a student and a parent

List of parent-children relationships

get
/v2/parents/{parent_id}/children

Retrieves all children linked to a specific parent, along with the relationship type (e.g. Mother, Father, Guardian). Results are paginated.

Authorizations
AuthorizationstringRequired

OAuth 2.0 Bearer token obtained via client credentials grant. Pass the token in the Authorization header as Bearer <token>.

Path parameters
parent_idstringRequired

The unique numeric identifier of the parent record.

Query parameters
pagestringOptional

An integer defining which page to display. Defaults to 1.

per_pagestringOptional

An integer defining the number of records to display per page. Defaults to 100.

Responses
200

Success

application/json
get/v2/parents/{parent_id}/children
GET /v2/parents/{parent_id}/children HTTP/1.1
Host: api.managebac.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "children": [
    {
      "id": 1,
      "relationship": "Mother"
    }
  ],
  "meta": {
    "current_page": 1,
    "total_pages": 1,
    "total_count": 1,
    "per_page": 100
  }
}

Create a parent-child relationship

post
/v2/parents/{parent_id}/children

Creates a new relationship between a parent and a child (student). The relationship type (e.g. Mother, Father, Guardian) must be provided.

If the child already has a relationship with this parent, a 422 error is returned. If the relationship was previously deleted, it is restored instead of creating a duplicate.

Authorizations
AuthorizationstringRequired

OAuth 2.0 Bearer token obtained via client credentials grant. Pass the token in the Authorization header as Bearer <token>.

Path parameters
parent_idstringRequired

The unique numeric identifier of the parent record.

Body
Responses
201

Created

application/json
post/v2/parents/{parent_id}/children
POST /v2/parents/{parent_id}/children HTTP/1.1
Host: api.managebac.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 42

{
  "child": {
    "id": 1,
    "relationship": "Mother"
  }
}
{
  "child": {
    "id": 1,
    "relationship": "Mother"
  }
}

Bulk update a parent-children relationships

put
/v2/parents/{parent_id}/children

Replaces all parent-children relationships for a given parent. The provided list of children and relationships becomes the complete set -- any existing relationships not included in the payload are removed.

Authorizations
AuthorizationstringRequired

OAuth 2.0 Bearer token obtained via client credentials grant. Pass the token in the Authorization header as Bearer <token>.

Path parameters
parent_idstringRequired

The unique numeric identifier of the parent record.

Body
Responses
200

Success

application/json
put/v2/parents/{parent_id}/children
PUT /v2/parents/{parent_id}/children HTTP/1.1
Host: api.managebac.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 47

{
  "children": [
    {
      "id": 1,
      "relationship": "Mother"
    }
  ]
}
{
  "children": [
    {
      "id": 1,
      "relationship": "Mother"
    },
    {
      "id": 2,
      "relationship": "Brother"
    }
  ]
}

Get parent-child relationship

get
/v2/parents/{parent_id}/children/{id}

Retrieves the relationship details between a specific parent and child, including the relationship type (e.g. Mother, Father, Guardian).

Authorizations
AuthorizationstringRequired

OAuth 2.0 Bearer token obtained via client credentials grant. Pass the token in the Authorization header as Bearer <token>.

Path parameters
parent_idstringRequired

The unique numeric identifier of the parent record.

idstringRequired

The unique numeric identifier of the child (student) record.

Responses
200

Success

application/json
get/v2/parents/{parent_id}/children/{id}
GET /v2/parents/{parent_id}/children/{id} HTTP/1.1
Host: api.managebac.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "child": {
    "id": 1,
    "relationship": "Mother"
  }
}

Update parent-child relationship

put
/v2/parents/{parent_id}/children/{id}

Updates the relationship type between a specific parent and child. The relationship must already exist; if it does not, a 404 error is returned.

Authorizations
AuthorizationstringRequired

OAuth 2.0 Bearer token obtained via client credentials grant. Pass the token in the Authorization header as Bearer <token>.

Path parameters
parent_idstringRequired

The unique numeric identifier of the parent record.

idstringRequired

The unique numeric identifier of the child (student) record.

Body
Responses
200

Success

application/json
put/v2/parents/{parent_id}/children/{id}
PUT /v2/parents/{parent_id}/children/{id} HTTP/1.1
Host: api.managebac.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 35

{
  "child": {
    "relationship": "Mother"
  }
}
{
  "child": {
    "id": 1,
    "relationship": "Mother"
  }
}

Remove parent-child relationship

delete
/v2/parents/{parent_id}/children/{id}

Removes the relationship between a specific parent and child. The relationship record is soft-deleted and can be restored by creating the same relationship again via POST.

Authorizations
AuthorizationstringRequired

OAuth 2.0 Bearer token obtained via client credentials grant. Pass the token in the Authorization header as Bearer <token>.

Path parameters
parent_idstringRequired

The unique numeric identifier of the parent record.

idstringRequired

The unique numeric identifier of the child (student) record.

Responses
204

No content

No content

delete/v2/parents/{parent_id}/children/{id}
DELETE /v2/parents/{parent_id}/children/{id} HTTP/1.1
Host: api.managebac.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*

No content

Last updated