keitaro-api-skill/references/paths/affiliate_networks_id_clone...

49 lines
1.1 KiB
YAML

post:
tags:
- Affiliate networks
security:
- ApiKeyAuth: []
parameters:
- name: id
in: path
description: Affiliate network ID
required: true
schema:
type: integer
summary: Clone affiliate network
description: Clone affiliate network
responses:
'200':
description: Affiliate network
content:
application/json:
schema:
$ref: ../schemas/AffiliateNetwork.yaml
'400':
$ref: ../responses/BadRequest.yaml
'401':
$ref: ../responses/Unauthorized.yaml
'402':
$ref: ../responses/PaymentRequired.yaml
'404':
$ref: ../responses/NotFound.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,
'/admin_api/v1/affiliate_networks/1/clone');
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Api-Key: your-api-key'));
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
echo curl_exec($ch);