@@ -217,17 +217,17 @@ func (c *Client) UpdateUserRoles(ctx context.Context, userID uuid.UUID, req Upda
217
217
218
218
// UpdateOrganizationMemberRoles grants the userID the specified roles in an org.
219
219
// Include ALL roles the user has.
220
- func (c * Client )UpdateOrganizationMemberRoles (ctx context.Context ,organizationID ,userID uuid.UUID ,req UpdateRoles ) (User ,error ) {
220
+ func (c * Client )UpdateOrganizationMemberRoles (ctx context.Context ,organizationID ,userID uuid.UUID ,req UpdateRoles ) (OrganizationMember ,error ) {
221
221
res ,err := c .request (ctx ,http .MethodPut ,fmt .Sprintf ("/api/v2/organizations/%s/members/%s/roles" ,organizationID ,uuidOrMe (userID )),req )
222
222
if err != nil {
223
- return User {},err
223
+ return OrganizationMember {},err
224
224
}
225
225
defer res .Body .Close ()
226
226
if res .StatusCode != http .StatusOK {
227
- return User {},readBodyAsError (res )
227
+ return OrganizationMember {},readBodyAsError (res )
228
228
}
229
- var user User
230
- return user ,json .NewDecoder (res .Body ).Decode (& user )
229
+ var member OrganizationMember
230
+ return member ,json .NewDecoder (res .Body ).Decode (& member )
231
231
}
232
232
233
233
// GetUserRoles returns all roles the user has