Create / Update User
Upserts a user by email address. If no user with the given email exists, a new user is created and a 201 response is returned. If a user with that email already exists, their record is updated and a 200 response is returned. Note: if the user belongs to an organization other than your own organization or one of its child organizations, their core profile fields (name, email, password) cannot be modified — only their membership role within your organization can be adjusted.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
User to create / update
Request body for creating or updating a user.
The first name of the user
"John"
The last name of the user
"Doe"
The email for the user
"john.doe@example.com"
The birthday for the user
"1975-12-01"
The gender for the user
M, F, N "M"
The user's password. Must be at least 10 characters and include letters and numbers.
"password1234"
Optional. The slug of the organization to assign the user to. Defaults to your partner organization. Must be your own organization or one of its child organizations.
"vomo"
Optional. The invitation code for the target organization. When supplied, this takes precedence over the org field and determines which organization the user is added to.
"vomoinvitationcode"
Optional. The phone number for the user.
"555-867-5309"
Optional. The user's role within your organization. Defaults to VOLUNTEER when not provided. Possible values: VOLUNTEER — standard volunteer member; ORGANIZER — can create and manage projects and events; ADMIN — organization administrator with full management access.
VOLUNTEER, ORGANIZER, ADMIN "VOLUNTEER"