Students

Students are child users who use ManageBac to learn

Update Student Avatar

put
/v2p1/students/{id}/avatar

This endpoint allows to update student's avatar.

Authorizations
auth_tokenstringRequired

Your V2 API authentication token may be passed in the parameters. To protect your key, use environment variables.

Path parameters
idintegerRequired

Unique identifier for a student.

Body
avatarany ofOptional
or
Responses
200

Success

application/json
put
/v2p1/students/{id}/avatar

Delete Student Avatar

delete
/v2p1/students/{id}/avatar

This endpoint allows to delete student's avatar.

Authorizations
auth_tokenstringRequired

Your V2 API authentication token may be passed in the parameters. To protect your key, use environment variables.

Path parameters
idintegerRequired

Unique identifier for a student.

Responses
200

Success

application/json
delete
/v2p1/students/{id}/avatar
200

Success

Get all Students

get
/v2p1/students

This endpoint retrieves all students. It returns personal details and program as well as any School-defined values.

Authorizations
auth_tokenstringRequired

Your V2 API authentication token may be passed in the parameters. To protect your key, use environment variables.

Query parameters
ids[]integer[]Optional

Return only records with the given IDs.

archivedbooleanOptional

Return only archived (1) or only active (0) students. If value is not specified, all students are returned.

statusstringOptional

Return students by status. Available statuses: enrolled, withdrawn, graduated. If value is not specified, all students are returned.

modified_sincestringOptional

A timestamp to filter the modification date of results.

year_group_idsinteger[]Optional

An integer list of year group ids to filter by.

year_group_ids[]integer[]Optional

An integer list of year group ids to filter by.

homeroom_advisor_idsinteger[]Optional

An integer list of homeroom advisor ids to filter by.

homeroom_advisor_ids[]integer[]Optional

An integer list of homeroom advisor ids to filter by.

pagestringOptional

An integer defining which page to display.

per_pagestringOptional

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

deleted_sincestringOptional

A timestamp to filter the deletion date of results.

qstringOptional

A string to search across the following fields: first_name, last_name, middle_name, nickname, other_name, email, student_id.

Responses
200

Success

application/json
get
/v2p1/students
200

Success

Create New Student

post
/v2p1/students

This endpoint creates a new student record. The Content-Type header must be set to application/json, and the request body should contain the field structure as a JSON payload. Only users with admin role are able to create new student records.

Authorizations
auth_tokenstringRequired

Your V2 API authentication token may be passed in the parameters. To protect your key, use environment variables.

Body
Responses
post
/v2p1/students
201

Success

Get a Student

get
/v2p1/students/{id}

This endpoint retrieves a single student as specified by ID. It returns personal details, including the IDs of parents. Depending on the value of the status field (withdrawn or graduated), the related date field will have a different name.

Authorizations
auth_tokenstringRequired

Your V2 API authentication token may be passed in the parameters. To protect your key, use environment variables.

Path parameters
idintegerRequired

Unique identifier for a student.

Responses
200

Success

application/json
get
/v2p1/students/{id}
200

Success

Update a Student

patch
/v2p1/students/{id}

This endpoint updates a student record as specified by student ID. The Content-Type header must be set to application/json, and the request body should contain the fields you want to update as a JSON payload. Only users with admin role are able to update students.

Authorizations
auth_tokenstringRequired

Your V2 API authentication token may be passed in the parameters. To protect your key, use environment variables.

Path parameters
idintegerRequired

Unique identifier for a student.

Body
Responses
200

Success

application/json
patch
/v2p1/students/{id}
200

Success

Archive a Student

put
/v2p1/students/{id}/archive

This endpoint archives the student record as specified by student ID. This effectively removes the record from classes, groups, etc. Either the withdrawl date or graduation date must be supplied to provide a reason for the archiving.

Authorizations
auth_tokenstringRequired

Your V2 API authentication token may be passed in the parameters. To protect your key, use environment variables.

Path parameters
idintegerRequired

Unique identifier for a student.

Body
or
Responses
200

Success

application/json
put
/v2p1/students/{id}/archive
200

Success

Unarchive a Student

put
/v2p1/students/{id}/unarchive

This endpoint reverses the archive operation on a student record as specified by ID. This effectively restores the student in classes, groups, etc.

Authorizations
auth_tokenstringRequired

Your V2 API authentication token may be passed in the parameters. To protect your key, use environment variables.

Path parameters
idintegerRequired

Unique identifier for a student.

Responses
200

Success

application/json
put
/v2p1/students/{id}/unarchive
200

Success

Last updated

Was this helpful?