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": "9eed2bcd-31b8-4478-870f-329a8cc94b7d",
"Name": "sample string 1",
"Description": "sample string 2",
"CustomStatuses": true,
"Fields": [
{
"TaskTypeFieldId": "21e8cb38-2a16-4a5d-8020-279b5a847061",
"Section": {
"TaskTypeSectionId": "771667f2-5fbb-4e5c-a52d-85d78fd78896",
"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": "2069820b-8fe4-4828-a7df-82a4341775c1",
"Name": "sample string 1"
},
"Unit": {
"UnitId": "db5afeec-c4df-4da0-bcf2-a7177848c09d",
"Code": "sample string 1",
"Description": "sample string 2",
"SourceSystemId": "sample string 3",
"CompanyId": "3bf38c73-e050-48f2-9c15-536b790500d9",
"CreateDate": "2025-11-19T08:17:51.4262468-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2025-11-19T08:17:51.4262468-08:00",
"LastModifiedUser": "sample string 6"
},
"DisplayOrder": 1,
"MinValue": 1.0,
"MaxValue": 1.0,
"MinLength": 1,
"MaxLength": 1,
"HasValidValues": true,
"ValidValues": [
{
"ValidValueId": "675f0a28-674a-4f5f-9a1c-4b46a8ec9a53",
"FieldId": "2800065e-cf83-4869-b221-efb6581432e3",
"FieldName": "sample string 1",
"FieldLable": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
},
{
"ValidValueId": "675f0a28-674a-4f5f-9a1c-4b46a8ec9a53",
"FieldId": "2800065e-cf83-4869-b221-efb6581432e3",
"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": "21e8cb38-2a16-4a5d-8020-279b5a847061",
"Section": {
"TaskTypeSectionId": "771667f2-5fbb-4e5c-a52d-85d78fd78896",
"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": "2069820b-8fe4-4828-a7df-82a4341775c1",
"Name": "sample string 1"
},
"Unit": {
"UnitId": "db5afeec-c4df-4da0-bcf2-a7177848c09d",
"Code": "sample string 1",
"Description": "sample string 2",
"SourceSystemId": "sample string 3",
"CompanyId": "3bf38c73-e050-48f2-9c15-536b790500d9",
"CreateDate": "2025-11-19T08:17:51.4262468-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2025-11-19T08:17:51.4262468-08:00",
"LastModifiedUser": "sample string 6"
},
"DisplayOrder": 1,
"MinValue": 1.0,
"MaxValue": 1.0,
"MinLength": 1,
"MaxLength": 1,
"HasValidValues": true,
"ValidValues": [
{
"ValidValueId": "675f0a28-674a-4f5f-9a1c-4b46a8ec9a53",
"FieldId": "2800065e-cf83-4869-b221-efb6581432e3",
"FieldName": "sample string 1",
"FieldLable": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
},
{
"ValidValueId": "675f0a28-674a-4f5f-9a1c-4b46a8ec9a53",
"FieldId": "2800065e-cf83-4869-b221-efb6581432e3",
"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": "baf63f7d-ae0a-4b5b-91bf-cdba6e51c8e0",
"CreateDate": "2025-11-19T08:17:51.4262468-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2025-11-19T08:17:51.4262468-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"
}