POST TaskTypes
Request Information
URI Parameters
None.
Body Parameters
TaskTypeParams| Name | Description | Type | Additional information |
|---|---|---|---|
| Task | TaskType |
None. |
|
| Associations | Collection of TaskStatusTypeTaskType |
None. |
Request Formats
application/json, text/json
Sample:
{
"Task": {
"TaskTypeId": "52933f62-4a95-4ce0-ad66-d6bae2968560",
"Name": "sample string 1",
"Description": "sample string 2",
"CustomStatuses": true,
"Fields": [
{
"TaskTypeFieldId": "832af9c5-a171-4afd-9383-fa91038de2d1",
"Section": {
"TaskTypeSectionId": "074b6661-0559-46a5-afd4-5db555f445bb",
"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": "1324ae09-ee1c-4c64-8181-56b8df440ce7",
"Name": "sample string 1"
},
"Unit": {
"UnitId": "fd8abfa8-b8f7-4757-9c12-065f5e4af404",
"Code": "sample string 1",
"Description": "sample string 2",
"SourceSystemId": "sample string 3",
"CompanyId": "0481873e-911f-4f63-bbf3-42089b3369a6",
"CreateDate": "2025-12-30T08:48:17.9909319-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2025-12-30T08:48:17.9909319-08:00",
"LastModifiedUser": "sample string 6"
},
"DisplayOrder": 1,
"MinValue": 1.0,
"MaxValue": 1.0,
"MinLength": 1,
"MaxLength": 1,
"HasValidValues": true,
"ValidValues": [
{
"ValidValueId": "550272e4-8aa2-44b3-bfc4-a997a83d1456",
"FieldId": "1c43abf3-c545-45c0-a061-35f5bbb0cc1f",
"FieldName": "sample string 1",
"FieldLabel": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
},
{
"ValidValueId": "550272e4-8aa2-44b3-bfc4-a997a83d1456",
"FieldId": "1c43abf3-c545-45c0-a061-35f5bbb0cc1f",
"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": "832af9c5-a171-4afd-9383-fa91038de2d1",
"Section": {
"TaskTypeSectionId": "074b6661-0559-46a5-afd4-5db555f445bb",
"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": "1324ae09-ee1c-4c64-8181-56b8df440ce7",
"Name": "sample string 1"
},
"Unit": {
"UnitId": "fd8abfa8-b8f7-4757-9c12-065f5e4af404",
"Code": "sample string 1",
"Description": "sample string 2",
"SourceSystemId": "sample string 3",
"CompanyId": "0481873e-911f-4f63-bbf3-42089b3369a6",
"CreateDate": "2025-12-30T08:48:17.9909319-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2025-12-30T08:48:17.9909319-08:00",
"LastModifiedUser": "sample string 6"
},
"DisplayOrder": 1,
"MinValue": 1.0,
"MaxValue": 1.0,
"MinLength": 1,
"MaxLength": 1,
"HasValidValues": true,
"ValidValues": [
{
"ValidValueId": "550272e4-8aa2-44b3-bfc4-a997a83d1456",
"FieldId": "1c43abf3-c545-45c0-a061-35f5bbb0cc1f",
"FieldName": "sample string 1",
"FieldLabel": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
},
{
"ValidValueId": "550272e4-8aa2-44b3-bfc4-a997a83d1456",
"FieldId": "1c43abf3-c545-45c0-a061-35f5bbb0cc1f",
"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": "2cafb3ad-01a2-46d4-a978-9a700d9ad024",
"CreateDate": "2025-12-30T08:48:17.9909319-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2025-12-30T08:48:17.9909319-08:00",
"LastModifiedUser": "sample string 7"
},
"Associations": [
{
"TaskStatusTypeTaskTypeId": "a07f5bb5-4648-4380-8a1c-f0e418aa9721",
"CompanyId": "2a8d3638-76b0-4f9e-805b-3a16c4f94c70",
"TaskStatusTypeId": "9710dd9e-d551-4c9d-a1e0-0dd729c50e0c",
"TaskStatusTypeName": "sample string 2",
"SourceSystemId": "sample string 3",
"TaskTypeId": "802f17a0-4b3f-4038-96be-03a2528cf047",
"TaskTypeName": "sample string 4",
"Description": "sample string 5"
},
{
"TaskStatusTypeTaskTypeId": "a07f5bb5-4648-4380-8a1c-f0e418aa9721",
"CompanyId": "2a8d3638-76b0-4f9e-805b-3a16c4f94c70",
"TaskStatusTypeId": "9710dd9e-d551-4c9d-a1e0-0dd729c50e0c",
"TaskStatusTypeName": "sample string 2",
"SourceSystemId": "sample string 3",
"TaskTypeId": "802f17a0-4b3f-4038-96be-03a2528cf047",
"TaskTypeName": "sample string 4",
"Description": "sample string 5"
}
]
}
Response Information
Resource Description
| Name | Description | Type | Additional information |
|---|---|---|---|
| Data | TaskType |
None. |
|
| Total | integer |
None. |
|
| Message | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"Data": {
"TaskTypeId": "1bdf4ac5-df03-4df7-ad4f-e03206cbe88c",
"Name": "sample string 1",
"Description": "sample string 2",
"CustomStatuses": true,
"Fields": [
{
"TaskTypeFieldId": "df258237-5c4a-43d7-8ee3-cfe8f02d4620",
"Section": {
"TaskTypeSectionId": "0f136f35-a3f9-4394-809c-f4a1af829d52",
"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": "d0c9b0c8-9b66-4d84-ac16-fe630b3d633b",
"Name": "sample string 1"
},
"Unit": {
"UnitId": "e85e2fe4-9bb3-4554-b587-2b57fc2c841a",
"Code": "sample string 1",
"Description": "sample string 2",
"SourceSystemId": "sample string 3",
"CompanyId": "ca4b0f08-664e-4da9-a95b-b774640d5fa7",
"CreateDate": "2025-12-30T08:48:17.9909319-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2025-12-30T08:48:17.9909319-08:00",
"LastModifiedUser": "sample string 6"
},
"DisplayOrder": 1,
"MinValue": 1.0,
"MaxValue": 1.0,
"MinLength": 1,
"MaxLength": 1,
"HasValidValues": true,
"ValidValues": [
{
"ValidValueId": "278ce6f7-1f02-4e9b-af9a-6f921a0a6103",
"FieldId": "e7b65236-f9d4-45ed-bf57-ed6444fb9c35",
"FieldName": "sample string 1",
"FieldLabel": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
},
{
"ValidValueId": "278ce6f7-1f02-4e9b-af9a-6f921a0a6103",
"FieldId": "e7b65236-f9d4-45ed-bf57-ed6444fb9c35",
"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": "df258237-5c4a-43d7-8ee3-cfe8f02d4620",
"Section": {
"TaskTypeSectionId": "0f136f35-a3f9-4394-809c-f4a1af829d52",
"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": "d0c9b0c8-9b66-4d84-ac16-fe630b3d633b",
"Name": "sample string 1"
},
"Unit": {
"UnitId": "e85e2fe4-9bb3-4554-b587-2b57fc2c841a",
"Code": "sample string 1",
"Description": "sample string 2",
"SourceSystemId": "sample string 3",
"CompanyId": "ca4b0f08-664e-4da9-a95b-b774640d5fa7",
"CreateDate": "2025-12-30T08:48:17.9909319-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2025-12-30T08:48:17.9909319-08:00",
"LastModifiedUser": "sample string 6"
},
"DisplayOrder": 1,
"MinValue": 1.0,
"MaxValue": 1.0,
"MinLength": 1,
"MaxLength": 1,
"HasValidValues": true,
"ValidValues": [
{
"ValidValueId": "278ce6f7-1f02-4e9b-af9a-6f921a0a6103",
"FieldId": "e7b65236-f9d4-45ed-bf57-ed6444fb9c35",
"FieldName": "sample string 1",
"FieldLabel": "sample string 2",
"ValueText": "sample string 3",
"LabelText": "sample string 4"
},
{
"ValidValueId": "278ce6f7-1f02-4e9b-af9a-6f921a0a6103",
"FieldId": "e7b65236-f9d4-45ed-bf57-ed6444fb9c35",
"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": "1efcbea7-cf9f-4fa5-8618-2e340e91b1fc",
"CreateDate": "2025-12-30T08:48:17.9909319-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2025-12-30T08:48:17.9909319-08:00",
"LastModifiedUser": "sample string 7"
},
"Total": 1,
"Message": "sample string 1"
}