DELETE TaskTypes
Deletes the given task type, including all tasks of that type.
Request Information
URI Parameters
None.
Body Parameters
Task type to delete
TaskType| Name | Description | Type | Additional information |
|---|---|---|---|
| TaskTypeId | globally unique identifier |
None. |
|
| Name | string |
None. |
|
| Description | string |
None. |
|
| CustomStatuses | boolean |
None. |
|
| Fields | Collection of TaskTypeField |
None. |
|
| SourceSystemId | string |
None. |
|
| CompanyId | globally unique identifier |
None. |
|
| CreateDate | date |
None. |
|
| CreateUser | string |
None. |
|
| LastModifiedDate | date |
None. |
|
| LastModifiedUser | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"TaskTypeId": "1aa46f9d-ff1f-4302-a486-7a35d2079508",
"Name": "sample string 1",
"Description": "sample string 2",
"CustomStatuses": true,
"Fields": [
{
"TaskTypeFieldId": "f14cb771-a738-4800-a217-6f91919b176c",
"Section": {
"TaskTypeSectionId": "6a822310-d110-42b3-829a-44093f55632c",
"Name": "sample string 1",
"Label": "sample string 2",
"DisplayOrder": 1,
"IsRepeatable": true,
"VisibleExpression": "sample string 4",
"SourceSystemId": "sample string 5"
},
"Name": "sample string 1",
"Label": "sample string 2",
"Description": "sample string 3",
"DataType": {
"DataTypeId": "19da35e4-59e4-4eca-9c3d-cd8d62138040",
"Name": "sample string 1"
},
"Unit": {
"UnitId": "efaf205f-6e44-4af9-96bf-4e7125be1660",
"Code": "sample string 1",
"Description": "sample string 2",
"SourceSystemId": "sample string 3",
"CompanyId": "306b06ca-afa8-4bb8-b115-a8476ba276a2",
"CreateDate": "2026-11-20T14:51:18.876786-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-11-20T14:51:18.876786-08:00",
"LastModifiedUser": "sample string 6"
},
"DisplayOrder": 1,
"MinValue": 1.0,
"MaxValue": 1.0,
"MinLength": 1,
"MaxLength": 1,
"HasValidValues": true,
"ValidValues": [
{
"ValidValueId": "f2b387e4-e1af-4688-89ed-45d5fb0b058f",
"FieldId": "59b369e3-aa36-42f6-9e6e-5c1455cc6a0f",
"FieldName": "sample string 1",
"FieldLable": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
},
{
"ValidValueId": "f2b387e4-e1af-4688-89ed-45d5fb0b058f",
"FieldId": "59b369e3-aa36-42f6-9e6e-5c1455cc6a0f",
"FieldName": "sample string 1",
"FieldLable": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
}
],
"ValueExpression": "sample string 5",
"RequiredExpression": "sample string 6",
"IsAttachment": true,
"DefaultValueExpression": "sample string 8",
"IsMultiline": true,
"IsRepeatable": true,
"VisibleExpression": "sample string 11",
"SourceSystemId": "sample string 12"
},
{
"TaskTypeFieldId": "f14cb771-a738-4800-a217-6f91919b176c",
"Section": {
"TaskTypeSectionId": "6a822310-d110-42b3-829a-44093f55632c",
"Name": "sample string 1",
"Label": "sample string 2",
"DisplayOrder": 1,
"IsRepeatable": true,
"VisibleExpression": "sample string 4",
"SourceSystemId": "sample string 5"
},
"Name": "sample string 1",
"Label": "sample string 2",
"Description": "sample string 3",
"DataType": {
"DataTypeId": "19da35e4-59e4-4eca-9c3d-cd8d62138040",
"Name": "sample string 1"
},
"Unit": {
"UnitId": "efaf205f-6e44-4af9-96bf-4e7125be1660",
"Code": "sample string 1",
"Description": "sample string 2",
"SourceSystemId": "sample string 3",
"CompanyId": "306b06ca-afa8-4bb8-b115-a8476ba276a2",
"CreateDate": "2026-11-20T14:51:18.876786-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-11-20T14:51:18.876786-08:00",
"LastModifiedUser": "sample string 6"
},
"DisplayOrder": 1,
"MinValue": 1.0,
"MaxValue": 1.0,
"MinLength": 1,
"MaxLength": 1,
"HasValidValues": true,
"ValidValues": [
{
"ValidValueId": "f2b387e4-e1af-4688-89ed-45d5fb0b058f",
"FieldId": "59b369e3-aa36-42f6-9e6e-5c1455cc6a0f",
"FieldName": "sample string 1",
"FieldLable": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
},
{
"ValidValueId": "f2b387e4-e1af-4688-89ed-45d5fb0b058f",
"FieldId": "59b369e3-aa36-42f6-9e6e-5c1455cc6a0f",
"FieldName": "sample string 1",
"FieldLable": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
}
],
"ValueExpression": "sample string 5",
"RequiredExpression": "sample string 6",
"IsAttachment": true,
"DefaultValueExpression": "sample string 8",
"IsMultiline": true,
"IsRepeatable": true,
"VisibleExpression": "sample string 11",
"SourceSystemId": "sample string 12"
}
],
"SourceSystemId": "sample string 4",
"CompanyId": "c0afe1fd-a799-46e5-8579-5803900dcdfb",
"CreateDate": "2026-11-20T14:51:18.876786-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-11-20T14:51:18.876786-08:00",
"LastModifiedUser": "sample string 7"
}
Response Information
Resource Description
| Name | Description | Type | Additional information |
|---|---|---|---|
| Data | Object |
None. |
|
| Total | integer |
None. |
|
| Message | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"Data": {},
"Total": 1,
"Message": "sample string 2"
}