Skip to main content
PUT
/
tasks
/
{id}
Update a task
curl --request PUT \
  --url https://app.leonar.app/api/v1/tasks/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "title": "<string>",
  "description": "<string>",
  "type": "call",
  "status": "todo",
  "priority": "low",
  "due_date": "2023-12-25",
  "assigned_to": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "contact_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "company_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "deal_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "project_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'
{
  "data": {
    "id": "e5f6a7b8-9012-34cd-efab-567890123def",
    "title": "Follow up with Sophie Martin",
    "description": "Discuss salary expectations and start date",
    "type": "call",
    "status": "todo",
    "priority": "high",
    "due_date": "2025-02-15",
    "assigned_to": "f6a7b8c9-0123-45de-fabc-678901234ef0",
    "contact_id": "a1b2c3d4-5678-90ab-cdef-1234567890ab",
    "company_id": null,
    "deal_id": null,
    "project_id": "d4e5f6a7-8901-23bc-defa-456789012cde",
    "completed_at": null,
    "created_at": "2025-02-10T10:00:00Z",
    "updated_at": "2025-02-10T10:00:00Z"
  }
}

Authorizations

Authorization
string
header
required

API key starting with leo_

Path Parameters

id
string<uuid>
required

Task ID

Body

application/json
title
string
description
string
type
enum<string>
Available options:
call,
email,
linkedin_connect,
linkedin_message,
whatsapp,
todo,
reminder,
meeting,
interview
status
enum<string>
Available options:
todo,
done,
skipped
priority
enum<string>
Available options:
low,
medium,
high
due_date
string<date>
assigned_to
string<uuid>
contact_id
string<uuid>
company_id
string<uuid>
deal_id
string<uuid>
project_id
string<uuid>

Response

Task updated

data
object
Example:
{
"id": "e5f6a7b8-9012-34cd-efab-567890123def",
"title": "Follow up with Sophie Martin",
"description": "Discuss salary expectations and start date",
"type": "call",
"status": "todo",
"priority": "high",
"due_date": "2025-02-15",
"assigned_to": "f6a7b8c9-0123-45de-fabc-678901234ef0",
"contact_id": "a1b2c3d4-5678-90ab-cdef-1234567890ab",
"company_id": null,
"deal_id": null,
"project_id": "d4e5f6a7-8901-23bc-defa-456789012cde",
"completed_at": null,
"created_at": "2025-02-10T10:00:00Z",
"updated_at": "2025-02-10T10:00:00Z"
}