updateMembershipStatus method
Update Team Membership Status
Use this endpoint to allow a user to accept an invitation to join a team after being redirected back to your app from the invitation email recieved by the user.
Implementation
Future<req.Response> updateMembershipStatus(
{required String teamId,
required String membershipId,
required String userId,
required String secret}) {
final String path = '/teams/{teamId}/memberships/{membershipId}/status'
.replaceAll(RegExp('{teamId}'), teamId)
.replaceAll(RegExp('{membershipId}'), membershipId);
final Map<String, dynamic> params = {
'userId': userId,
'secret': secret,
};
final Map<String, String> headers = {
'content-type': 'application/json',
};
return client.call(HttpMethod.patch,
path: path, params: params, headers: headers);
}