Create a user
Changed onGiven a body create the user in TeamOhana and return it to the user. If the password is not provided during creation a randomly generated password will be set for the user. The username should be an email id OR the emails field should contain at least one email with type work. The API will fail to create the user otherwise. By default the user is also provisioned in Auth0; set create-in-auth0 to false in the body when the user already exists in Auth0 (e.g. via SSO) — in that case externalId must be set to the Auth0 user_id. The user's role is taken from the roles attribute: the value of the entry whose type is teamohana (case-sensitive), is matched against the org's role names. When no such entry is present the user defaults to the employee role; when a matching role is supplied but does not exist the request fails with 400 invalidValue.
Request
- Base URLhttps://api.teamohana.us (the document declares no server; this is the origin it was published from)
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
Request body
Response
Changes
- info
added the non-success response with the status
- info