putChannelsAllowlistWithHttpInfo method

Future<Response> putChannelsAllowlistWithHttpInfo(
  1. AllowlistPutIn allowlistPutIn
)

Edits the caller org's access policy for one channel and answers the policy as GET would, so both verbs return ONE shape.

Edits the caller org's access policy for one channel and answers the policy as GET would, so both verbs return ONE shape. It requires ORG ADMIN. Every field but channel is optional and applied only when provided: an empty policy string leaves that policy alone, an absent or null list leaves that list alone, and an EMPTY list clears it. It writes only CONFIG-sourced allow entries — senders approved through pairing belong to the approval flow, so a policy edit can never revoke one. An unknown channel is a 404.

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> putChannelsAllowlistWithHttpInfo(AllowlistPutIn allowlistPutIn,) async {
  // ignore: prefer_const_declarations
  final path = r'/v1/channels/allowlist';

  // ignore: prefer_final_locals
  Object? postBody = allowlistPutIn;

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

  const contentTypes = <String>['application/json'];


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