Teachers

Teachers are users who use ManageBac to delivery curriculum

Update Teacher Avatar

put
/v2/teachers/{id}/avatar

This endpoint allows to update teacher'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 teacher.

Body
avatarany ofOptional
or
Responses
200

Success

application/json
put
/v2/teachers/{id}/avatar

Delete Teacher Avatar

delete
/v2/teachers/{id}/avatar

This endpoint allows to delete teacher'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 teacher.

Responses
200

Success

application/json
delete
/v2/teachers/{id}/avatar
200

Success

Get all Teachers

get
/v2/teachers

This endpoint retrieves all teachers it returns teacher ID and personal details.

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) teachers. If value is not specified, all teachers are returned.

modified_sincestringOptional

A timestamp to filter results by modification date.

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 results by deletion date of records.

qstringOptional

A string to search across all fields for.

Responses
200

Success

application/json
get
/v2/teachers
200

Success

Create New Teacher

post
/v2/teachers

This endpoint creates a new teacher record. Note, 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 update users.

Authorizations
auth_tokenstringRequired

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

Body
Responses
post
/v2/teachers
201

Success

Get a Teacher

get
/v2/teachers/{id}

This endpoint retrieves a teacher as specified by teacher ID. It returns the ID and contact details.

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 teacher.

Responses
200

Success

application/json
get
/v2/teachers/{id}
200

Success

Update a Teacher

patch
/v2/teachers/{id}

This endpoint updates a teacher record, as specified by the teacher ID. Note, 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 users.

Authorizations
auth_tokenstringRequired

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

Path parameters
idintegerRequired

A numeric value that specifies a Teacher id.

Body
Responses
200

Success

application/json
patch
/v2/teachers/{id}
200

Success

Archive a Teacher

put
/v2/teachers/{id}/archive

This endpoint archives a teacher record as specified by ID. This effectively removes the teacher from groups they are members of.

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 teacher.

Responses
200

Success

application/json
put
/v2/teachers/{id}/archive
200

Success

Unarchive a Teacher

put
/v2/teachers/{id}/unarchive

This endpoint reverses the archive operation on the teacher record as specified by ID. This effectively restores the teacher’s group memberships.

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 teacher.

Responses
200

Success

application/json
put
/v2/teachers/{id}/unarchive
200

Success

Get teacher Classes Memberships

get
/v2/teachers/{id}/classes

This endpoint retrieves all classes memberships of a teacher.

Authorizations
auth_tokenstringRequired

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

Path parameters
idintegerRequired

A unique teacher ID.

Query parameters
show_on_reportsbooleanOptional

A boolean param to filter classes memberships by Show on Reports status.

Default: true
archivedbooleanOptional

A boolean param to filter classes memberships by class archived status.

Default: false
Responses
200

Success

application/json
get
/v2/teachers/{id}/classes
200

Success

Get teacher Groups Memberships

get
/v2/teachers/{id}/groups

This endpoint retrieves all groups memberships of a teacher.

Authorizations
auth_tokenstringRequired

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

Path parameters
idintegerRequired

A unique teacher ID.

Query parameters
archivedbooleanOptional

A boolean param to filter groups memberships by group archived status.

Default: false
Responses
200

Success

application/json
get
/v2/teachers/{id}/groups
200

Success

Last updated

Was this helpful?