curl \
-H "Authorization: Bearer API_KEY" \
-X DELETE https://api.ayrshare.com/api/automations/auto_9xKp2Lm4nQ
const API_KEY = "API_KEY";
const id = "auto_9xKp2Lm4nQ";
fetch(`https://api.ayrshare.com/api/automations/${id}`, {
method: "DELETE",
headers: { "Authorization": `Bearer ${API_KEY}` },
})
.then((res) => res.json())
.then((json) => console.log(json))
.catch(console.error);
import requests
headers = {"Authorization": "Bearer API_KEY"}
automation_id = "auto_9xKp2Lm4nQ"
r = requests.delete(
f"https://api.ayrshare.com/api/automations/{automation_id}",
headers=headers,
)
print(r.json())
$id = "auto_9xKp2Lm4nQ";
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.ayrshare.com/api/automations/" . $id,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => ["Authorization: Bearer API_KEY"],
]);
$response = curl_exec($curl);
curl_close($curl);
echo $response;
{
"status": "success",
"id": "auto_9xKp2Lm4nQ"
}
{
"action": "automation",
"status": "error",
"code": 469,
"message": "Automation not found"
}
Automations
ऑटोमेशन हटाएँ
किसी ऑटोमेशन का सॉफ्ट-डिलीट करें
DELETE
/
automations
/
:id
curl \
-H "Authorization: Bearer API_KEY" \
-X DELETE https://api.ayrshare.com/api/automations/auto_9xKp2Lm4nQ
const API_KEY = "API_KEY";
const id = "auto_9xKp2Lm4nQ";
fetch(`https://api.ayrshare.com/api/automations/${id}`, {
method: "DELETE",
headers: { "Authorization": `Bearer ${API_KEY}` },
})
.then((res) => res.json())
.then((json) => console.log(json))
.catch(console.error);
import requests
headers = {"Authorization": "Bearer API_KEY"}
automation_id = "auto_9xKp2Lm4nQ"
r = requests.delete(
f"https://api.ayrshare.com/api/automations/{automation_id}",
headers=headers,
)
print(r.json())
$id = "auto_9xKp2Lm4nQ";
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.ayrshare.com/api/automations/" . $id,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => ["Authorization: Bearer API_KEY"],
]);
$response = curl_exec($curl);
curl_close($curl);
echo $response;
{
"status": "success",
"id": "auto_9xKp2Lm4nQ"
}
{
"action": "automation",
"status": "error",
"code": 469,
"message": "Automation not found"
}
Beta. पूर्ण फ़ीचर विवरण के लिए Automations Overview देखें।
deleted: true, active: false के रूप में चिह्नित किया जाता है; इस बिंदु के बाद कोई नई डिस्पैच नहीं होती।
मौजूदा ट्रिगर, क्रियाएँ और गतिविधि रो कैस्केड नहीं होती हैं। गतिविधि इतिहास GET /automations/:id/activity के माध्यम से तब तक क्वेरी योग्य रहता है जब तक Firestore में रो मौजूद हैं (ट्रेस और एनालिटिक्स के लिए रिटेंशन अनिश्चितकालीन है)।
सॉफ्ट-डिलीट किए गए ऑटोमेशन अब आपकी सक्रिय ऑटोमेशन सीमा में नहीं गिने जाते। इन्हें API के माध्यम से पुनर्स्थापित नहीं किया जा सकता; इसके बजाय एक नया ऑटोमेशन बनाएँ।
हैडर पैरामीटर
पथ पैरामीटर
string
आवश्यक
POST /automations से लौटाई गई ऑटोमेशन ID।curl \
-H "Authorization: Bearer API_KEY" \
-X DELETE https://api.ayrshare.com/api/automations/auto_9xKp2Lm4nQ
const API_KEY = "API_KEY";
const id = "auto_9xKp2Lm4nQ";
fetch(`https://api.ayrshare.com/api/automations/${id}`, {
method: "DELETE",
headers: { "Authorization": `Bearer ${API_KEY}` },
})
.then((res) => res.json())
.then((json) => console.log(json))
.catch(console.error);
import requests
headers = {"Authorization": "Bearer API_KEY"}
automation_id = "auto_9xKp2Lm4nQ"
r = requests.delete(
f"https://api.ayrshare.com/api/automations/{automation_id}",
headers=headers,
)
print(r.json())
$id = "auto_9xKp2Lm4nQ";
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.ayrshare.com/api/automations/" . $id,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => ["Authorization: Bearer API_KEY"],
]);
$response = curl_exec($curl);
curl_close($curl);
echo $response;
{
"status": "success",
"id": "auto_9xKp2Lm4nQ"
}
{
"action": "automation",
"status": "error",
"code": 469,
"message": "Automation not found"
}