aiAccountOrgsIntegrationCredentialCreateWithHttpInfo method
Future<Response>
aiAccountOrgsIntegrationCredentialCreateWithHttpInfo(
- String org,
- IntegrationCredential integrationCredential
API View to manage Integration credentials. Sample for value field : {\"key\": \"sk-31343432432434324324324324\"}
Note: This method returns the HTTP Response.
Parameters:
-
String org (required):
-
IntegrationCredential integrationCredential (required):
Implementation
Future<Response> aiAccountOrgsIntegrationCredentialCreateWithHttpInfo(String org, IntegrationCredential integrationCredential,) async {
// ignore: prefer_const_declarations
final path = r'/api/ai/account/orgs/{org}/integration-credential/'
.replaceAll('{org}', org);
// ignore: prefer_final_locals
Object? postBody = integrationCredential;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'];
return apiClient.invokeAPI(
path,
'POST',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}