Assign staff member to a user

Sets or clears the user identifier associated with a staff member after checking staff and user edit permissions.

Authentication

AuthorizationBearer

The signed-in SchoolSet user token sent by the frontend.

Request

This endpoint expects an object.
staff_member_idintegerRequired
user_idinteger or nullOptional

Response

The staff-to-user association was saved successfully.

statusstringOptional
messagestringOptional
datalist of anyOptional

Errors

401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
422
Unprocessable Entity Error