Create a user
POST/v1/user-management
Creates a new user with specified permissions to access your log data. If you run this endpoint with the token of the main account, then you can perform actions on the main account or any sub-account within the main account by providing the sub-account’s accountID. If you run this endpoint with the token of the sub-account, then you can perform actions only on the given sub-account.
Note: Creating users through Logzio API requires email approval and activation of the request. To disable email verification for the API, contact the Logz.io support team. Please ensure to change the region in the URL to match your account's region.
Request
- application/json
Body
Possible values: Value must match regular expression ^[_A-Za-z0-9-\+]+(\.[_A-Za-z0-9-]+)*@[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*(\.[A-Za-z]{2,})$
Email address used to sign in to Logz.io. This property cannot be updated. A new user will need to be created for each email address.
The user's first and last name
ID of the account attached to the user
User role. Can be USER_ROLE_READONLY
, USER_ROLE_REGULAR
or USER_ROLE_ACCOUNT_ADMIN
.
Responses
- 200
successful operation
- application/json
- Schema
- Example (from schema)
Schema
ID of the user
{
"id": 13485
}