Create a member
POST
/users/newusers:write Enterprise
Creates an account for a new member of your organisation, with the email address and password you choose. It uses a seat, as an invitation does, and gives the member your organisation's default role.
When every seat is taken and automatic seats are on, a seat is added and charged first; the member is only created once that payment goes through.
Request body application/json
Fields of MemberCreate:
fullNamestringrequiredThe member's name.emailstring(email)requiredpasswordstringrequiredTheir first password. They can change it after signing in.at least 6 characterscompanystringTheir company. Kept when your own account has a company name.
Responses
User:
idstringrequiredThe account's ID.fullNamestringemailstring(email)requiredemailVerifiedbooleancompanystringphoneNumberstringaddressstringzipCodestringcountrystringphotoUrlstringcreatedOninteger(int64)When the account was created, in milliseconds since 1 January 1970 (UTC).lastSignininteger(int64)When they last signed in, in milliseconds since 1 January 1970 (UTC).deletedbooleanmetadataobject (any fields)Your own data about the member, as you last set it with Update a member.
Errors
A failed request answers with one of these, in an Error body.
401
unauthorized_actionThe item is not on your account or your members', the request came from a web page on a website the key does not allow, or the action is not allowed for this person.402
enterprise_seat_payment_failedEvery seat is taken, and the payment for the extra seat your automatic seats setting asked for did not go through.403
insufficient_scopeThe key does not have the access this endpoint needs. Create a key with that access.409
enterprise_add_users_limitEvery seat of your Enterprise subscription is taken. Add seats in the app, or turn on automatic seats.Try it
This key is
The key stays in this tab and goes only to the API. Use a sandbox key while you try things: requests are real, and what they change is changed.
POST https://api.measuremaponline.com/api/v1/users/newFill in your API key to send.
As a cURL command
curl -X POST 'https://api.measuremaponline.com/api/v1/users/new' \
-H "Authorization: $MMO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"fullName": "Maria Lopez",
"email": "maria@example.com",
"password": "a-long-random-password"
}'