acceptWorkspaceInvitationWithHttpInfo method

Future<Response> acceptWorkspaceInvitationWithHttpInfo(
  1. String token
)

Accept a workspace invitation by token. The signed-in user's email must match the invitation. Organization-token accept lives at POST /v1/organizations/{org}/accept-invitation.

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> acceptWorkspaceInvitationWithHttpInfo(String token,) async {
  // ignore: prefer_const_declarations
  final path = r'/v1/invitations/{token}/accept'
    .replaceAll('{token}', token);

  // ignore: prefer_final_locals
  Object? postBody;

  final queryParams = <QueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  const contentTypes = <String>[];


  return apiClient.invokeAPI(
    path,
    'POST',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}