---
title: "Update Task"
method: PUT
path: "/communications/tasks/{task_id}"
tags: ["Task"]
---

# Update Task

`PUT /communications/tasks/{task_id}`

Update a Task given the Task identifier and Task data.

## Path parameters

- `task_id` string, required

## Headers

- `x-api-key` string, required

## Request body

- RequestPutTask — structure for creating/updating a Task
  - `task_name` string — Name of task
  - `task_description` string — Description of the task
  - `assignee` PutRequestFSObject, required — FirestoreObject with defaults
    - `object_type_id` integer — ObjectTypeId
    - `id` integer — object Identifier
  - `due_date` string, date — Day this task is due
  - `recurrence` PutTaskRecurrence — PostTaskRecurrence with default values
    - `recurrence_id` string — recurrence id
    - `repeat_every` integer — Integer value for the interval associated with RepeatType
    - `repeat_every_unit_id` integer — Id of the Repeat type (Days, Weeks, etc)
    - `repeat_every_unit` string — Repeat type (Days, Weeks, etc) name
    - `repeat_on_days_of_week` DayOfWeekDTOAPI[] — Days of the week ID list
      - `day_of_week` string, required — &quot;Monday&quot; etc.
      - `day_of_week_id` integer, required — Record Identifier
    - `end_type_id` integer — date=1, after=2, never=3
    - `end_type` string — date=1, after=2, never=3
    - `ends_on_date` string, date — endtype=1. Date the task ends on if EndType = On (a chosen date)
    - `ends_after_occurrences` integer — endtype=2. Total number of occurrences set for a recurring task
    - `next_occurrence` string, date — Date of the time the task will occur again after being completed

## Response `200`

Task id created

- CustomerTasksAPI — for update single task or getting plural tasks, no associated people or followers
  - `task_id` string, required — task_id created
  - `task_name` string, required — Name of task
  - `task_description` string — Description of the task
  - `assignee` ResponseFSObject, required — FirestoreObject
    - `object_type_id` integer — ObjectTypeId
    - `object_type` string — Object Type label
    - `id` integer — object Identifier
    - `name` string — object name
  - `due_date` string, date — Day this task is due
  - `recurrence` ResponseTaskRecurrence — holds TaskReccureence attributes we allow the user to create/update
    - `repeat_every` integer — Integer value for the interval associated with RepeatType
    - `repeat_every_unit_id` integer — Id of the Repeat type (Days, Weeks, etc)
    - `repeat_every_unit` string — Repeat type (Days, Weeks, etc) name
    - `repeat_on_days_of_week` DayOfWeekDTOAPI[] — Days of the week ID list
      - `day_of_week` string, required — &quot;Monday&quot; etc.
      - `day_of_week_id` integer, required — Record Identifier
    - `end_type_id` integer — date=1, after=2, never=3
    - `end_type` string — date=1, after=2, never=3
    - `ends_on_date` string, date — endtype=1. Date the task ends on if EndType = On (a chosen date)
    - `ends_after_occurrences` integer — endtype=2. Total number of occurrences set for a recurring task
    - `next_occurrence` string, date — Date of the time the task will occur again after being completed
  - `completed` FSCompleted — task completion info for Firestore
    - `object_type_id` integer — ObjectTypeId
    - `object_type` string — Object Type label
    - `completed_by_id` integer — Who last completed the record (Identifier)
    - `completed_by` string — Who last completed the record (Name)
    - `completed_on_datetime` string, date-time — Datetime that the record was completed
  - `created` FSCreated — Creation info for FireStore
    - `object_type_id` integer — ObjectTypeId
    - `object_type` string — Object Type label
    - `created_by_id` integer — Who created the record (Identifier)
    - `created_by` string — Who created the record (Name)
    - `created_on_datetime` string, date-time — Datetime the record was created
  - `updated` FSUpdated — Update info for Firestore
    - `object_type_id` integer — ObjectTypeId
    - `object_type` string — Object Type label
    - `updated_by_id` integer — Who last updated the record (Identifier)
    - `updated_by` string — Who last updated the record (Name)
    - `updated_on_datetime` string, date-time — Datetime that the record was last updated

---

[API](https://skmtc.net/wodify/apis/leads.md) · [All operations](https://skmtc.net/wodify/apis/leads/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/wodify/leads/revisions/974500ca0714/schema)
