updateOperatorAppIdpConfig method

Future<UpdateOperatorAppIdpConfigOutput> updateOperatorAppIdpConfig({
  1. required String agentSpaceId,
  2. String? idpClientSecret,
})

Update the external Identity Provider configuration for the Operator App

May throw InternalServerException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException.

Parameter agentSpaceId : The unique identifier of the AgentSpace

Parameter idpClientSecret : The OIDC client secret for the IdP application

Implementation

Future<UpdateOperatorAppIdpConfigOutput> updateOperatorAppIdpConfig({
  required String agentSpaceId,
  String? idpClientSecret,
}) async {
  final $payload = <String, dynamic>{
    if (idpClientSecret != null) 'idpClientSecret': idpClientSecret,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'PATCH',
    requestUri:
        '/v1/agentspaces/${Uri.encodeComponent(agentSpaceId)}/operator/idp',
    hostPrefix: 'cp.',
    exceptionFnMap: _exceptionFns,
  );
  return UpdateOperatorAppIdpConfigOutput.fromJson(response);
}