Skip to content

Latest commit

 

History

History
67 lines (47 loc) · 2.49 KB

File metadata and controls

67 lines (47 loc) · 2.49 KB

cloudflare_dart.api.MiscategorizationApi

Load the API package

import 'package:cloudflare_dart/api.dart';

All URIs are relative to https://api.cloudflare.com/client/v4

Method HTTP request Description
miscategorizationCreateMiscategorization POST /accounts/{account_id}/intel/miscategorization Create Miscategorization

miscategorizationCreateMiscategorization

IntelApiResponseSingle miscategorizationCreateMiscategorization(accountId, intelMiscategorization)

Create Miscategorization

Allows you to submit requests to change a domain’s category.

Example

import 'package:cloudflare_dart/api.dart';
// TODO Configure API key authorization: api_key
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
// TODO Configure API key authorization: api_email
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_email').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_email').apiKeyPrefix = 'Bearer';

final api = CloudflareDart().getMiscategorizationApi();
final String accountId = accountId_example; // String | 
final IntelMiscategorization intelMiscategorization = ; // IntelMiscategorization | 

try {
    final response = api.miscategorizationCreateMiscategorization(accountId, intelMiscategorization);
    print(response);
} catch on DioException (e) {
    print('Exception when calling MiscategorizationApi->miscategorizationCreateMiscategorization: $e\n');
}

Parameters

Name Type Description Notes
accountId String
intelMiscategorization IntelMiscategorization

Return type

IntelApiResponseSingle

Authorization

api_key, api_token, api_email

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]