deleteLinkByIdWithHttpInfo method

Future<Response> deleteLinkByIdWithHttpInfo(
  1. String id
)

Logs out one account and stops the sessions it was running.

Logs out one account and stops the sessions it was running. It revokes a single linked account and stops the agent sessions that ran under it, answering with the revoked row and how many sessions stopped. The link is RETAINED with a revoked status rather than deleted, so its usage history and the audit trail survive the log-out — which also means a revoked account still appears in the list, and is excluded from the route plan rather than absent from it. The session stop is narrowed to the revoking user's own sessions on that device, provider and account, and a stop that fails does not fail the revoke: the revoked row is the durable truth. An id that does not exist, or belongs to another user or org, is the same 404.

Note: This method returns the HTTP Response.

Parameters:

  • String id (required): ID is the link to act on, from the path. It is scoped to the caller, so another user's or org's id is a 404.

Implementation

Future<Response> deleteLinkByIdWithHttpInfo(String id,) async {
  // ignore: prefer_const_declarations
  final path = r'/v1/link/{id}'
    .replaceAll('{id}', id);

  // ignore: prefer_final_locals
  Object? postBody;

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

  const contentTypes = <String>[];


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