post: tags: - Bot list security: - ApiKeyAuth: [] summary: Add IPs to the bot list description: Add IPs to the bot list requestBody: description: Add IPs to the bot list required: true content: application/json: schema: $ref: ../schemas/BotListRequest.yaml responses: '200': description: Add IPs to 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/add'); 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);