Redash consumes its own API. So anything you can do in the application you can also do with the API. From the file you shared, it looks like you can post an array of strings with the key groups to api/users/<user_id>
On the Redash Github[¹] I found these files, where I think can be the right way to add a user.
!
I’m trying post this JSON:
{
“action”:“add_member”,
“timestamp”:“2021-02-03T17:00:35.111Z”,
“object_id”:“objectId”,
“object_type”:“group”,
“member_id”:“memberId”
}
on this URL: /api/groups/groupId/members
But every try I receive : {“message”: “Internal Server Error”}
Glad you figured this out! I was just working on a response for you!
Important for others looking into this: the self.record_event() call shown in OP’s comment has nothing to do with the API syntax. That just logs this event to Redash’s metadata database.
1 Like
Login or sign up disabled while the site is in read only mode