Update task
Update a task.
/ v1 / tasks / {id}
Authorization
Path parameters
- idstring
The id of the task to update.
Body
application/json
- dueDatedatetime
ISO 8601 Due date on the task. REQUIRED for scheduled tasks.
- durationstring | number
A duration can be one of the following... "NONE", "REMINDER", or an integer greater than 0 (representing minutes).
- statusstring
Defaults to workspace default status.
- autoScheduledobject | null
Set values to turn auto scheduling on, set value to null if you want to turn auto scheduling off. The status for the task must have auto scheduling enabled.
- startDatedatetime
ISO 8601 Date which is trimmed to the start of the day passed.
- deadlineTypestring = SOFT
HARD, SOFT, or NONE are valid options.
- schedulestring = Work Hours
Schedule the task must adhere to. Schedule MUST be 'Work Hours' if scheduling the task for another user.
-
-
Title of the task.
- projectIdstring
The project ID the task should be associated with.
-
The workspace ID the task should be associated with.
- descriptionstring
Github Flavored Markdown for the input.
- prioritystring
ASAP, HIGH, MEDIUM, and LOW are valid values.
- labelsarray<string>
The names of the labels to be added to the task.
- assigneeIdstring
The user id the task should be assigned to.
Response
200 - application/json - object
-
The ID of the task.
-
The name of the task.
-
The HTML contents of the description.
- durationstring | number
An integer greater than 0 (representing minutes), "NONE", or "REMINDER".
- dueDatedatetime
When is the task due.
-
Values are HARD, SOFT (default) or NONE.
-
If this is an instance of a recurring task, this field will be the parent recurring task id.
-
Whether the task is completed or not.
- completedTimedatetime
The timestamp when the task was completed.
- updatedTimedatetime
The timestamp when the task was last updated.
- startOnstring
Date indicating when a task should start, in YYYY-MM-DD format.
-
The user who created the task.
- projectobject
The project data.
-
The ID of the project.
-
The name of the project.
-
The HTML contents of the description.
-
The ID of the workspace.
- statusobject
The status of the project.
- namestring
The name of the status.
- isDefaultStatusboolean
Whether this status is a default status for the workspace.
- isResolvedStatusboolean
Whether this is a resolved (terminated) status for the workspace.
-
- createdTimedatetime
The timestamp when the project was created.
- updatedTimedatetime
The timestamp when the project was last updated.
- customFieldValuesrecord<object>
Record of custom field values for the entity, where each key is the name of the custom field (not the ID). Each object contains a "type" discriminator and a "value" property that varies based on the field type.
- textobject
Text custom field value.
- numberobject
Number custom field value.
- urlobject
URL custom field value.
- dateobject
Date custom field value.
- selectobject
Select custom field value.
- multiSelectobject
Multi-select custom field value.
- personobject
Person custom field value.
- multiPersonobject
Multi-person custom field value.
- emailobject
Email custom field value.
- phoneobject
Phone custom field value.
- checkboxobject
Checkbox custom field value.
-
-
-
The workspace data.
-
The ID of the workspace.
-
The name of the workspace.
-
The ID of the team.
-
Whether the workspace is a team or individual type.
-
An array of labels.
- namestring
The name of the label.
-
-
An array of statuses for the workspace.
- namestring
The name of the status.
- isDefaultStatusboolean
Whether this status is a default status for the workspace.
- isResolvedStatusboolean
Whether this is a resolved (terminated) status for the workspace.
-
-
-
The status of the The status of the task.
- namestring
The name of the status.
- isDefaultStatusboolean
Whether this status is a default status for the workspace.
- isResolvedStatusboolean
Whether this is a resolved (terminated) status for the workspace.
-
-
Valid options are ASAP, HIGH, MEDIUM, or LOW.
-
An array of labels.
- namestring
The name of the label.
-
-
An array of assignees.
- scheduledStartdatetime
The time that motion has scheduled this task to start.
-
The time that the task was created.
- scheduledEnddatetime
The time that motion has scheduled this task to end.
-
Returns true if Motion was unable to schedule this task. Check Motion directly to address.
- lastInteractedTimedatetime
The timestamp when the task was last interacted with.
- customFieldValuesrecord<object>
Record of custom field values for the entity, where each key is the name of the custom field (not the ID). Each object contains a "type" discriminator and a "value" property that varies based on the field type.
- textobject
Text custom field value.
- numberobject
Number custom field value.
- urlobject
URL custom field value.
- dateobject
Date custom field value.
- selectobject
Select custom field value.
- multiSelectobject
Multi-select custom field value.
- personobject
Person custom field value.
- multiPersonobject
Multi-person custom field value.
- emailobject
Email custom field value.
- phoneobject
Phone custom field value.
- checkboxobject
Checkbox custom field value.
-
- chunksarray<object>
Array of scheduling chunks for the task.
- idstring
The ID of the chunk.
- durationnumber
The duration of the chunk in minutes.
- scheduledStartdatetime
The scheduled start time of the chunk.
- scheduledEnddatetime
The scheduled end time of the chunk.
- completedTimedatetime
The time when the chunk was completed.
- isFixedboolean
Whether the chunk is fixed or not.
-