[DELETE] Regel löschen
KI-Überblick
Dokumentiert den Endpunkt, der eine oder mehrere Coming-Soon-Regeln in einer einzigen Anfrage löscht.
- Rufen Sie
DELETE /shop-api/coming-soon/deletemit dem HeaderAuthorizationauf; das Rate Limit istthrottle:30,1. - Senden Sie ein
ids-Array im Body; es ist erforderlich und akzeptiert bis zu 100 IDs. - Zu den Fehlern gehören "The ids field is required" und "Coming soon products not found".
Von KI erstellte Zusammenfassung. Sie kann Fehler enthalten – prüfe die vollständige Anleitung unten.
Sie können in einer einzigen Anfrage eine oder mehrere Coming-Soon-Regeln löschen.
* Authentifizierung
Erforderlich Authorization
Limit throttle:30,1
Anfrage
Endpunkt DELETE - /shop-api/coming-soon/delete
Payload-Body
| Parameter | Typ | Erforderlich |
|---|---|---|
| ids | array | yes max:100 |
DELETE /shop-api/coming-soon/delete HTTP/1.1Host: preorder.globo.ioContent-Type: application/jsonAuthorization: ************Content-Length: 21
{ "ids": [1324]}const myHeaders = new Headers();myHeaders.append("Content-Type", "application/json");myHeaders.append("Authorization", "************");const raw = JSON.stringify({ "ids": [ 1324 ]});const requestOptions = { method: "DELETE", headers: myHeaders, body: raw, redirect: "follow"};fetch("https://preorder.globo.io/shop-api/coming-soon/delete", requestOptions) .then((response) => response.text()) .then((result) => console.log(result)) .catch((error) => console.error(error));$curl = curl_init();curl_setopt_array($curl, array( CURLOPT_URL => 'https://preorder.globo.io/shop-api/coming-soon/delete', CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => '', CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 0, CURLOPT_FOLLOWLOCATION => true, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => 'DELETE', CURLOPT_POSTFIELDS =>'{ "ids": [1324] }', CURLOPT_HTTPHEADER => array( 'Content-Type: application/json', 'Authorization: ************' ),));$response = curl_exec($curl);curl_close($curl);echo $response;Erfolgsantwort 200
{ "success": true, "message": "Coming soon products deleted successfully"}Fehlgeschlagen
// missing ids or ids is not array{ "success": false, "message": "The ids field is required"}// not found{ "success": false, "message": "Coming soon products not found"}// catch{ "success": false, "message": "Something went wrong"}War diese Seite hilfreich?
Danke für Ihr Feedback! Sagen Sie uns, was gefehlt hat
Problem melden