Skip to main content
PUT
/
v3
/
tasks
/
{id}
Update a task
curl --request PUT \
  --url https://api.reply.io/v3/tasks/{id} \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "taskType": "toDo",
  "startAt": "2023-11-07T05:31:56Z",
  "dueTo": "2023-11-07T05:31:56Z",
  "template": {
    "body": "<string>",
    "subject": "<string>",
    "attachmentIdList": [
      123
    ]
  },
  "contactId": 123,
  "linkedInTaskType": "message"
}
'
{
  "id": 123,
  "contactId": 123,
  "taskType": "toDo",
  "status": "new",
  "linkedInTaskType": "message",
  "sequenceId": 123,
  "sequenceStepId": 123,
  "sequenceStepDisplayName": "<string>",
  "assignedUserId": 123,
  "creationSource": "user",
  "createdAt": "2023-11-07T05:31:56Z",
  "startAt": "2023-11-07T05:31:56Z",
  "dueTo": "2023-11-07T05:31:56Z",
  "finishedAt": "2023-11-07T05:31:56Z",
  "isFailed": true,
  "isScheduled": true,
  "template": {
    "body": "<string>",
    "subject": "<string>",
    "attachmentIdList": [
      123
    ]
  },
  "content": {
    "body": "<string>",
    "subject": "<string>"
  },
  "deliveryInfo": {
    "email": "<string>",
    "phoneNumber": "<string>",
    "linkedInUrl": "<string>"
  }
}

Authorizations

X-API-Key
string
header
required

API key passed in the X-API-Key header

Path Parameters

id
integer
required

Task ID.

Body

application/json

Request body for updating a task. Full replacement (PUT), not partial update.

taskType
enum<string>
required

Task type. Possible values: toDo, call, meeting, linkedIn, manualEmail, sms, whatsApp.

Available options:
toDo,
call,
meeting,
linkedIn,
manualEmail,
sms,
whatsApp
startAt
string<date-time>
required

Task start time. Must be on or after 2015-01-01.

dueTo
string<date-time>
required

Task due time. Must be after startAt.

template
TaskTemplate · object
required

Updated task content template. Body is required.

contactId
integer | null

Contact (prospect) ID. Cannot be changed for sequence-created tasks.

linkedInTaskType
enum<string> | null

LinkedIn action subtype. Only for LinkedIn tasks. Possible values: message, connect, inMail, viewProfile.

Available options:
message,
connect,
inMail,
viewProfile

Response

Task updated successfully.

Full task detail returned by GET by ID, Create, and Update endpoints.

id
integer

Task ID.

contactId
integer | null

Associated contact (prospect) ID.

taskType
enum<string>

Task type. Possible values: toDo, call, meeting, linkedIn, manualEmail, sms, whatsApp.

Available options:
toDo,
call,
meeting,
linkedIn,
manualEmail,
sms,
whatsApp
status
enum<string>

Task status. Possible values: new, finished, cancelled, archived, sequenceDetached.

Available options:
new,
finished,
cancelled,
archived,
sequenceDetached
linkedInTaskType
enum<string> | null

LinkedIn action subtype. Only present for LinkedIn tasks. Possible values: message, connect, inMail, viewProfile.

Available options:
message,
connect,
inMail,
viewProfile
sequenceId
integer | null

Sequence ID if this task was created by a sequence.

sequenceStepId
integer | null

Sequence step ID. Available when the ExtendedFilterInTasks feature is enabled.

sequenceStepDisplayName
string | null

Human-readable sequence step name (e.g. "Step 2 - Email").

assignedUserId
integer

ID of the user this task is assigned to.

creationSource
enum<string>

How the task was created. Possible values: user, sequence, meeting.

Available options:
user,
sequence,
meeting
createdAt
string<date-time>

When the task was created.

startAt
string<date-time>

Task start time. When isScheduled is true, this is the scheduled execution time.

dueTo
string<date-time>

Task due time.

finishedAt
string<date-time> | null

When the task was completed. Null for active tasks.

isFailed
boolean

Whether the task execution failed.

isScheduled
boolean

Whether the task is scheduled for automatic execution.

template
TaskTemplate · object

Raw task template. For active tasks, may contain {{variable}} placeholders. For finished tasks, contains the final content (raw version is no longer available).

content
TaskContent · object

Rendered content with variables resolved. Only populated when includeContent=true query parameter is set. Null by default.

deliveryInfo
TaskDeliveryInfo · object

Delivery target information. Populated for ManualEmail (email), Call/SMS (phone), and LinkedIn (URL) tasks. Null for ToDo, Meeting, and WhatsApp tasks.