Delete a lead task
Scope: crm:deals.write https://api.alladdin.com/api/v2/leads/{leadId}/tasks
Deletes an existing task from a lead.
Parameters
Path parameters
leadId string required
Lead ID
Request body
object task_id string required
Task ID
Request
import requests
url = "https://api.alladdin.com/api/v2/leads/{leadId}/tasks"
headers = {
"Authorization": "Bearer YOUR_API_KEY",
"Accept": "application/json",
}
payload = {
"task_id": "string"
}
response = requests.delete(url, headers=headers, json=payload)
print(response.json())Responses
Success responses
204 Resource deleted
Error responses
400 Bad request application/json 401 Invalid or missing API key application/json 403 Insufficient permissions application/json 404 Lead not found application/json 429 Rate limit exceeded application/json
