diff --git a/POST-%2Fservice%2F%7Bserviceid%7D%2Fprovisioning%2Fcancel.md b/POST-%2Fservice%2F%7Bserviceid%7D%2Fprovisioning%2Fcancel.md new file mode 100644 index 0000000..d9c1d8c --- /dev/null +++ b/POST-%2Fservice%2F%7Bserviceid%7D%2Fprovisioning%2Fcancel.md @@ -0,0 +1,77 @@ +## **POST /service/{serviceid}/provisioning/cancel** + + +## **Inhalt** +--- +- Parameter +- Optionale Parameter +- Beispiel Anfrage +- Beispiel Antwort +- Mögliche Fehlermeldungen +--- + +### Parameter + +|URL Parameter | Typ | Beschreibung| +|----------|-----|-------------| +|serviceid | integer| Beschreibt die ID des Services + +--- + +### Optionale Parameter + +|Query-String Parameter | Typ | Beschreibung| +|----------|-----|-------------| +|-| -| - + + + + +--- + +### Beispiel Anfrage + +##### PHP +```php + 'control.local/api/v2/service/12345/provisioning/cancel', + CURLOPT_CUSTOMREQUEST => 'POST', + CURLOPT_HTTPHEADER => array( + 'X-TOKEN: test-token', + 'Content-Type: application/json' + ), +)); + +$response = curl_exec($curl); + +curl_close($curl); +echo $response; +``` + +##### cURL +```bash +curl --location --request POST control.local/api/v2/service/449050/provisioning/cancel' \ +--header 'X-TOKEN: test-token' \ +--header 'Content-Type: application/json' +``` + +--- + +### Beispiel Antwort + +```json +{ + "status": "OK", +} +``` + + +### Mögliche Fehlermeldungen + +> :warning: Status Code **403** - Permission denied + +> :warning: Status Code **500** - This action is not available for this service! \ No newline at end of file