postIntegrationsConnectorsByIdRefreshWithHttpInfo method
Forces a token rotation for a connected connector, ahead of the automatic rotation a token read would do inside the expiry window.
Forces a token rotation for a connected connector, ahead of the automatic rotation a token read would do inside the expiry window. Only providers that declare a Refresh support it.
Note: This method returns the HTTP Response.
Parameters:
- String id (required): ID is the connector id, provider + ":" + label ("openai:default") — the auth-profile-id shape. Another user's id is simply no row, so 404.
Implementation
Future<Response> postIntegrationsConnectorsByIdRefreshWithHttpInfo(String id,) async {
// ignore: prefer_const_declarations
final path = r'/v1/integrations/connectors/{id}/refresh'
.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,
'POST',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}