Skip to main content
PATCH
/
taskTypes
/
{id}
Update task type
curl --request PATCH \
  --url http://localhost:3000/v2/taskTypes/{id} \
  --header 'Content-Type: application/json' \
  --data '
{
  "_id": "<string>",
  "number": 123,
  "companyId": "<string>",
  "status": {
    "status": 123,
    "createdAt": "2023-11-07T05:31:56Z",
    "createdBy": "<string>",
    "lastModifiedAt": "2023-11-07T05:31:56Z",
    "lastModifiedBy": "<string>"
  },
  "name": "<string>",
  "prefix": "<string>",
  "svg": "<string>",
  "color": "<string>",
  "isDefault": true
}
'

Path Parameters

id
string<objectid>
required

Task Type ID

Body

application/json

Task type data to update

A single task entity

_id
string<objectid>

Unique identifier of the entity

number
integer

Unique number of the entity, used for identification

companyId
string<objectid>

The ID of the company this entity belongs to

status
object

Entity Status information

name
string

Name of the task type

prefix
string

Prefix for the task type, used in identifiers (e.g. the REC in REC-1234)

svg
string | null

SVG icon for the task type

color
string | null

Color for the task type

isDefault
boolean

If the task type is the default task type

Response

Task type updated successfully