Alladdin

Work in progress

Site en construction

الموقع قيد الإنشاء

Alladdin
PUT

Update a lead task

Scope: crm:deals.write https://api.alladdin.com/api/v2/leads/{leadId}/tasks

Updates an existing task for a lead.

Parameters

Path parameters

leadId string required

Lead ID

Request body

object task_id string required

Task ID

name string required

Task name

Request

python
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",
    "name": "string"
}
response = requests.put(url, headers=headers, json=payload)
print(response.json())

Responses

Response

json
{
  "id": "string"
}

Success responses

200 Task updated application/json object id string

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

← PreviousUpdate a lead note →

Next →Update a lead →