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": "95ab6b6e-b753-4e18-9285-92b65cd56fae",
"Name": "sample string 1",
"Description": "sample string 2",
"CustomStatuses": true,
"Fields": [
{
"TaskTypeFieldId": "b70d713d-bc22-4c10-93d4-518815fc1d95",
"Section": {
"TaskTypeSectionId": "0a480a5d-ecd5-4e53-a65a-7af59a7cf452",
"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": "811d5e69-ce34-4f43-bf09-0861b9c53e7b",
"Name": "sample string 1"
},
"Unit": {
"UnitId": "00f1419c-344b-4ee0-8117-aa807fbd4da9",
"Code": "sample string 1",
"Description": "sample string 2",
"SourceSystemId": "sample string 3",
"CompanyId": "367b8883-76ab-41c6-87c5-349cdfe9aa90",
"CreateDate": "2026-09-02T00:31:43.136553-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-09-02T00:31:43.136553-07:00",
"LastModifiedUser": "sample string 6"
},
"DisplayOrder": 1,
"MinValue": 1.0,
"MaxValue": 1.0,
"MinLength": 1,
"MaxLength": 1,
"HasValidValues": true,
"ValidValues": [
{
"ValidValueId": "3d7dd9cf-5699-4666-980a-27d92c74f5d1",
"FieldId": "10d5ffb2-a89b-4abc-acbd-755079efc128",
"FieldName": "sample string 1",
"FieldLabel": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
},
{
"ValidValueId": "3d7dd9cf-5699-4666-980a-27d92c74f5d1",
"FieldId": "10d5ffb2-a89b-4abc-acbd-755079efc128",
"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": "b70d713d-bc22-4c10-93d4-518815fc1d95",
"Section": {
"TaskTypeSectionId": "0a480a5d-ecd5-4e53-a65a-7af59a7cf452",
"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": "811d5e69-ce34-4f43-bf09-0861b9c53e7b",
"Name": "sample string 1"
},
"Unit": {
"UnitId": "00f1419c-344b-4ee0-8117-aa807fbd4da9",
"Code": "sample string 1",
"Description": "sample string 2",
"SourceSystemId": "sample string 3",
"CompanyId": "367b8883-76ab-41c6-87c5-349cdfe9aa90",
"CreateDate": "2026-09-02T00:31:43.136553-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-09-02T00:31:43.136553-07:00",
"LastModifiedUser": "sample string 6"
},
"DisplayOrder": 1,
"MinValue": 1.0,
"MaxValue": 1.0,
"MinLength": 1,
"MaxLength": 1,
"HasValidValues": true,
"ValidValues": [
{
"ValidValueId": "3d7dd9cf-5699-4666-980a-27d92c74f5d1",
"FieldId": "10d5ffb2-a89b-4abc-acbd-755079efc128",
"FieldName": "sample string 1",
"FieldLabel": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
},
{
"ValidValueId": "3d7dd9cf-5699-4666-980a-27d92c74f5d1",
"FieldId": "10d5ffb2-a89b-4abc-acbd-755079efc128",
"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": "c1bd23a9-8c92-41c0-b926-bdc065023953",
"CreateDate": "2026-09-02T00:31:43.136553-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-09-02T00:31:43.136553-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"
}