Skip to main content

Update a user

PUT 

/v1/user-management/:id

Changes an existing user's details or permissions. 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. Please ensure to change the region in the URL to match your account's region.

Request

Path Parameters

    id int32required

    ID of the user

    Example: 11300

Body

    username stringrequired

    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.

    fullName stringrequired

    The user's first and last name

    accountID int32required

    ID of the account attached to the user

    role string

    User role. Can be USER_ROLE_READONLY, USER_ROLE_REGULAR or USER_ROLE_ACCOUNT_ADMIN.

Responses

successful operation

Schema
    id int32

    ID of the user

Loading...