User
Update user roles
Changed onReplace 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 URLhttps://api.lytics.io/v2
- URLhttps://api.lytics.io/v2/user/{id}/roles
- AuthAPI 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
Changes
- breaking
the request's body type changed from
objecttoarray - 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
- breaking