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": "06cc5c09-af9e-43b1-8ae9-0f44cfe0dd46",
"Name": "sample string 1",
"Description": "sample string 2",
"CustomStatuses": true,
"Fields": [
{
"TaskTypeFieldId": "3c945ee8-91f2-4e06-87ae-865e3811ec38",
"Section": {
"TaskTypeSectionId": "68ce7351-c2f9-4fc6-a338-9dffc2ba1e48",
"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": "253c3952-4cf7-461d-b947-b9efb9f31d19",
"Name": "sample string 1"
},
"Unit": {
"UnitId": "9eb6c107-23f3-451d-83c3-565708df9416",
"Code": "sample string 1",
"Description": "sample string 2",
"SourceSystemId": "sample string 3",
"CompanyId": "f2c2584e-6b7b-472c-b99f-de2b1a1ac262",
"CreateDate": "2025-11-05T07:01:13.773543-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2025-11-05T07:01:13.773543-08:00",
"LastModifiedUser": "sample string 6"
},
"DisplayOrder": 1,
"MinValue": 1.0,
"MaxValue": 1.0,
"MinLength": 1,
"MaxLength": 1,
"HasValidValues": true,
"ValidValues": [
{
"ValidValueId": "3c179945-8eac-4919-b023-11d0df3711b8",
"FieldId": "2d1233bb-e523-45ae-82fd-8f87f8e0d1ac",
"FieldName": "sample string 1",
"FieldLabel": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
},
{
"ValidValueId": "3c179945-8eac-4919-b023-11d0df3711b8",
"FieldId": "2d1233bb-e523-45ae-82fd-8f87f8e0d1ac",
"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": "3c945ee8-91f2-4e06-87ae-865e3811ec38",
"Section": {
"TaskTypeSectionId": "68ce7351-c2f9-4fc6-a338-9dffc2ba1e48",
"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": "253c3952-4cf7-461d-b947-b9efb9f31d19",
"Name": "sample string 1"
},
"Unit": {
"UnitId": "9eb6c107-23f3-451d-83c3-565708df9416",
"Code": "sample string 1",
"Description": "sample string 2",
"SourceSystemId": "sample string 3",
"CompanyId": "f2c2584e-6b7b-472c-b99f-de2b1a1ac262",
"CreateDate": "2025-11-05T07:01:13.773543-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2025-11-05T07:01:13.773543-08:00",
"LastModifiedUser": "sample string 6"
},
"DisplayOrder": 1,
"MinValue": 1.0,
"MaxValue": 1.0,
"MinLength": 1,
"MaxLength": 1,
"HasValidValues": true,
"ValidValues": [
{
"ValidValueId": "3c179945-8eac-4919-b023-11d0df3711b8",
"FieldId": "2d1233bb-e523-45ae-82fd-8f87f8e0d1ac",
"FieldName": "sample string 1",
"FieldLabel": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
},
{
"ValidValueId": "3c179945-8eac-4919-b023-11d0df3711b8",
"FieldId": "2d1233bb-e523-45ae-82fd-8f87f8e0d1ac",
"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": "fb4f173a-02d3-40f2-a233-6d9596920a75",
"CreateDate": "2025-11-05T07:01:13.773543-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2025-11-05T07:01:13.773543-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"
}