Update project teacher
PUT /projects/{projectId}/teacher
PUT
/projects/{projectId}/teacher
Assign a new teacher to a project (teacher role required)
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” projectId
required
integer
Unique identifier for the project
Header Parameters
Section titled “Header Parameters ” X-User-Role
required
string
Teacher role required for this endpoint
Request Body required
Section titled “Request Body required ”object
new_teacher_id
required
ID of the new teacher to assign
integer
Responses
Section titled “ Responses ”Teacher assigned successfully
object
success
boolean
data
Response data
message
Optional success message
string
Bad request - invalid input
object
success
required
Indicates if the request was successful
boolean
message
required
Response message
string
success
boolean
message
string
Unauthorized - authentication required
object
success
required
Indicates if the request was successful
boolean
message
required
Response message
string
success
boolean
message
string
Forbidden - insufficient permissions
object
success
required
Indicates if the request was successful
boolean
message
required
Response message
string
success
boolean
message
string
Resource not found
object
success
required
Indicates if the request was successful
boolean
message
required
Response message
string
success
boolean
message
string
Conflict - resource already exists
object
success
required
Indicates if the request was successful
boolean
message
required
Response message
string
success
boolean
message
string
Internal server error
object
success
required
Indicates if the request was successful
boolean
message
required
Response message
string
success
boolean
message
string