|
|
|
@ -60,7 +60,7 @@ |
|
|
|
|
$curl = curl_init(); |
|
|
|
|
|
|
|
|
|
curl_setopt_array($curl, array( |
|
|
|
|
CURLOPT_URL => 'control.local/api/v2/protection/flexrule', |
|
|
|
|
CURLOPT_URL => 'https://api.dsh.gg/api/v2/protection/flexrule', |
|
|
|
|
CURLOPT_CUSTOMREQUEST => 'POST', |
|
|
|
|
CURLOPT_POSTFIELDS =>'{ |
|
|
|
|
"sequence": 1, |
|
|
|
@ -99,7 +99,7 @@ echo $response; |
|
|
|
|
|
|
|
|
|
##### cURL |
|
|
|
|
```bash |
|
|
|
|
curl --location --request POST 'control.local/api/v2/protection/flexrule' \ |
|
|
|
|
curl --location --request POST 'https://api.dsh.gg/api/v2/protection/flexrule' \ |
|
|
|
|
--header 'X-TOKEN: test-token' \ |
|
|
|
|
--header 'Content-Type: application/json' \ |
|
|
|
|
--data-raw '{ |
|
|
|
|