User

Update user roles

Changed on

Replace all account roles for a user with the provided list. The body is a bare JSON array of role names, not an object, and it replaces every role the user has on the account, e.g. ["admin","auth_alerts"].

post/user/{id}/roles

Request

  • Base URL
    https://api.lytics.io/v2
  • URL
    https://api.lytics.io/v2/user/{id}/roles
  • Auth
    API key in header Authorization

Path parameters

idstring required

User ID or email address

Query parameters

account_idstring

The account ID. Defaults to the user's default account.

Request body */*

string[] required

Response

User Response

_metaobject

Response Metadata

request_idstring
statusinteger

HTTP Status Code

Changes

    • breaking

      the request's body type changed from object to array

    • warning

      removed the request property

    • info

      added the optional property //// to the response with the status

    • info

      added the optional property //// to the response with the status