Create or invite a school user

Creates a regular SchoolSet user invitation or an API user token and attaches the resulting account to the administrator's active school.

Authentication

AuthorizationBearer

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

Request

This endpoint expects an object.
emailstringRequiredformat: "email"
user_typeenumOptionalDefaults to user
Allowed values:
namestringOptional<=255 characters

Response

The user was created or invited and its serialized record was returned.
statusstringOptional
messagestringOptional
dataobjectOptional

Errors

401
Unauthorized Error
403
Forbidden Error
422
Unprocessable Entity Error