TicketTask

Update Task

PATCH
Update a task

Path parameters

idstringRequired

Headers

x-revert-api-tokenstringRequired
Your official API key for accessing revert apis.
x-revert-t-idstringRequired
The unique customer id used when the customer linked their account.
x-api-versionstringOptional
Optional Revert API version you're using. If missing we default to the latest version of the API.

Query parameters

fieldsstringOptional

Request

This endpoint expects an object.
name
stringRequired
Name of the task.
assignees
list of stringsRequired
collection of IDs belonging to assignees.
description
stringRequired
Description of the task.
status
enumRequired
Current status of the task.
Allowed values: openclosein_progress
priority
enumRequired
Priority of the task.
Allowed values: urgenthighmediumlowlowest
creatorId
stringRequired
ID of the task creator.
dueDate
stringRequired
Due date for the given task.
completedDate
stringRequired
Date at which task was completed.
parentId
stringRequired
Id of the parent task.
listId
stringRequired
Id of the list

Response

This endpoint returns an object
status
enum
Allowed values: okerror
message
string
result
any
PATCH
1curl -X PATCH "https://api.revert.dev/ticket/tasks/:id?fields=string" \
2 -H "x-revert-api-token: string" \
3 -H "x-revert-t-id: string" \
4 -H "x-api-version: string" \
5 -H "Content-Type: application/json" \
6 -d '{
7 "name": "string",
8 "assignees": [
9 "string"
10 ],
11 "description": "string",
12 "status": "open",
13 "priority": "urgent",
14 "creatorId": "string",
15 "dueDate": "string",
16 "completedDate": "string",
17 "parentId": "string",
18 "listId": "string"
19}'
200Updated
1{
2 "status": "ok",
3 "message": "string",
4 "result": {}
5}