updateOrganizationMembershipWithHttpInfo method
Future<Response>
updateOrganizationMembershipWithHttpInfo(
- String organizationId,
- String userId,
- UpdateOrganizationMembershipRequest updateOrganizationMembershipRequest
Update an organization membership
Updates the properties of an existing organization membership
Note: This method returns the HTTP Response
.
Parameters:
-
String organizationId (required): The ID of the organization the membership belongs to
-
String userId (required): The ID of the user that this membership belongs to
-
UpdateOrganizationMembershipRequest updateOrganizationMembershipRequest (required):
Implementation
Future<http.Response> updateOrganizationMembershipWithHttpInfo(
String organizationId,
String userId,
UpdateOrganizationMembershipRequest updateOrganizationMembershipRequest,
) async {
// ignore: prefer_const_declarations
final path = r'/organizations/{organization_id}/memberships/{user_id}'
.replaceAll('{organization_id}', organizationId)
.replaceAll('{user_id}', userId);
// ignore: prefer_final_locals
Object? postBody = updateOrganizationMembershipRequest;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>['application/json'];
return apiClient.invokeAPI(
path,
'PATCH',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}