[DELETE] Kural silme
Yapay Zekâ Özeti
Bir veya daha fazla yakında geliyor kuralını tek istekte silen uç noktayı belgeler.
AuthorizationbaşlığıylaDELETE /shop-api/coming-soon/deleteçağırın; hız sınırıthrottle:30,1'dir.- Gövdede bir
idsdizisi gönderin; zorunludur ve en fazla 100 kimlik kabul eder. - Hatalar arasında "The ids field is required" ve "Coming soon products not found" bulunur.
Yapay zekâ tarafından oluşturulan özet. Hata içerebilir; aşağıdaki kılavuzun tamamını kontrol edin.
Aynı istekte tek bir coming soon kuralını veya birden fazla kuralı silebilirsiniz.
* Kimlik doğrulama
Zorunlu Authorization
Sınır throttle:30,1
İstek
Uç nokta DELETE - /shop-api/coming-soon/delete
Payload gövdesi
| Parametreler | Tür | Zorunlu |
|---|---|---|
| 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;Başarılı yanıt 200
{ "success": true, "message": "Coming soon products deleted successfully"}Başarısız
// 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"}Bu sayfa yardımcı oldu mu?
Geri bildiriminiz için teşekkürler! Neyin eksik olduğunu bize söyleyin
Sorun bildir