keitaro-api-skill/references/paths/botlist_exclude.yaml

61 lines
1.3 KiB
YAML

post:
tags:
- Bot list
security:
- ApiKeyAuth: []
summary: Remove IPs from the bot list
description: Remove IPs from the bot list
requestBody:
description: Remove IPs from the bot list
required: true
content:
application/json:
schema:
$ref: ../schemas/BotListRequest.yaml
responses:
'200':
description: Remove IPs from the bot list
content:
application/json:
schema:
type: object
properties:
count:
type: integer
'400':
$ref: ../responses/BadRequest.yaml
'401':
$ref: ../responses/Unauthorized.yaml
'402':
$ref: ../responses/PaymentRequired.yaml
'406':
$ref: ../responses/NotAcceptable.yaml
'500':
$ref: ../responses/InternalError.yaml
x-code-samples:
- lang: PHP
source: >-
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,
'http://example.com/admin_api/v1/botlist/exclude');
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Api-Key: your-api-key'));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, 1);
$params = [
'value' => "1.1.1.2"
];
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($params));
echo curl_exec($ch);