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": "7c964e38-2b09-4040-906c-af8e37509fee",
"Name": "sample string 1",
"Description": "sample string 2",
"CustomStatuses": true,
"Fields": [
{
"TaskTypeFieldId": "4da350c3-2316-44ff-bcda-a4bb972c6176",
"Section": {
"TaskTypeSectionId": "19a71bd9-68bb-40e7-9b49-d0c3f20c78c0",
"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": "802648dc-30f6-45bc-85a9-51ef5766055e",
"Name": "sample string 1"
},
"Unit": {
"UnitId": "9b12424c-ff17-40fa-9d1d-e2bd07308f6b",
"Code": "sample string 1",
"Description": "sample string 2",
"SourceSystemId": "sample string 3",
"CompanyId": "9849b52d-8610-4aec-9998-7f3bc8650cf6",
"CreateDate": "2026-04-30T21:01:04.6856504-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-04-30T21:01:04.6856504-07:00",
"LastModifiedUser": "sample string 6"
},
"DisplayOrder": 1,
"MinValue": 1.0,
"MaxValue": 1.0,
"MinLength": 1,
"MaxLength": 1,
"HasValidValues": true,
"ValidValues": [
{
"ValidValueId": "e97d6643-6457-4637-aedd-11a053b2522b",
"FieldId": "dc5f7b81-9dbd-4b93-ac43-9d39ca1f65ef",
"FieldName": "sample string 1",
"FieldLabel": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
},
{
"ValidValueId": "e97d6643-6457-4637-aedd-11a053b2522b",
"FieldId": "dc5f7b81-9dbd-4b93-ac43-9d39ca1f65ef",
"FieldName": "sample string 1",
"FieldLabel": "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": "4da350c3-2316-44ff-bcda-a4bb972c6176",
"Section": {
"TaskTypeSectionId": "19a71bd9-68bb-40e7-9b49-d0c3f20c78c0",
"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": "802648dc-30f6-45bc-85a9-51ef5766055e",
"Name": "sample string 1"
},
"Unit": {
"UnitId": "9b12424c-ff17-40fa-9d1d-e2bd07308f6b",
"Code": "sample string 1",
"Description": "sample string 2",
"SourceSystemId": "sample string 3",
"CompanyId": "9849b52d-8610-4aec-9998-7f3bc8650cf6",
"CreateDate": "2026-04-30T21:01:04.6856504-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-04-30T21:01:04.6856504-07:00",
"LastModifiedUser": "sample string 6"
},
"DisplayOrder": 1,
"MinValue": 1.0,
"MaxValue": 1.0,
"MinLength": 1,
"MaxLength": 1,
"HasValidValues": true,
"ValidValues": [
{
"ValidValueId": "e97d6643-6457-4637-aedd-11a053b2522b",
"FieldId": "dc5f7b81-9dbd-4b93-ac43-9d39ca1f65ef",
"FieldName": "sample string 1",
"FieldLabel": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
},
{
"ValidValueId": "e97d6643-6457-4637-aedd-11a053b2522b",
"FieldId": "dc5f7b81-9dbd-4b93-ac43-9d39ca1f65ef",
"FieldName": "sample string 1",
"FieldLabel": "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": "aed64ed9-587c-40e9-8230-f89338555ae8",
"CreateDate": "2026-04-30T21:01:04.6856504-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-04-30T21:01:04.6856504-07: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"
}