POST TaskTypes

Request Information

URI Parameters

None.

Body Parameters

TaskTypeParams
NameDescriptionTypeAdditional information
Task

TaskType

None.

Associations

Collection of TaskStatusTypeTaskType

None.

Request Formats

application/json, text/json

Sample:
{
  "Task": {
    "TaskTypeId": "3c260e33-f508-4b8d-baaf-35c090f81e7a",
    "Name": "sample string 1",
    "Description": "sample string 2",
    "CustomStatuses": true,
    "Fields": [
      {
        "TaskTypeFieldId": "29510f75-e82c-41aa-bcd9-b23c72b5679c",
        "Section": {
          "TaskTypeSectionId": "e4428e35-aa89-42ba-b2db-0ab3296fcb01",
          "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": "a7a0a1bd-feae-4d8e-83d1-5ec3c3d60ffb",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "b2d41824-cd9c-4809-bb48-59487fba916a",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "d8ac3777-247d-4926-8270-8fefbcfd0c2f",
          "CreateDate": "2025-07-19T02:23:40.1572047-07:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2025-07-19T02:23:40.1572047-07:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "b4b84d3b-e4ce-4c2b-9b4b-691a255bcf8f",
            "FieldId": "b665f7fc-009e-407f-b113-483417cbde03",
            "FieldName": "sample string 1",
            "FieldLable": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "b4b84d3b-e4ce-4c2b-9b4b-691a255bcf8f",
            "FieldId": "b665f7fc-009e-407f-b113-483417cbde03",
            "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": "29510f75-e82c-41aa-bcd9-b23c72b5679c",
        "Section": {
          "TaskTypeSectionId": "e4428e35-aa89-42ba-b2db-0ab3296fcb01",
          "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": "a7a0a1bd-feae-4d8e-83d1-5ec3c3d60ffb",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "b2d41824-cd9c-4809-bb48-59487fba916a",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "d8ac3777-247d-4926-8270-8fefbcfd0c2f",
          "CreateDate": "2025-07-19T02:23:40.1572047-07:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2025-07-19T02:23:40.1572047-07:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "b4b84d3b-e4ce-4c2b-9b4b-691a255bcf8f",
            "FieldId": "b665f7fc-009e-407f-b113-483417cbde03",
            "FieldName": "sample string 1",
            "FieldLable": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "b4b84d3b-e4ce-4c2b-9b4b-691a255bcf8f",
            "FieldId": "b665f7fc-009e-407f-b113-483417cbde03",
            "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": "c2eeadda-1f85-4a9c-b894-5cf4a48e43c9",
    "CreateDate": "2025-07-19T02:23:40.1572047-07:00",
    "CreateUser": "sample string 6",
    "LastModifiedDate": "2025-07-19T02:23:40.1572047-07:00",
    "LastModifiedUser": "sample string 7"
  },
  "Associations": [
    {
      "TaskStatusTypeTaskTypeId": "317f50da-2e1b-420b-8ab2-c6e82c0b3009",
      "CompanyId": "701fdb63-d306-4ff7-8140-3f8dc8c0421f",
      "TaskStatusTypeId": "915a5ef0-aa83-4fe2-8863-729e35b83d5f",
      "TaskStatusTypeName": "sample string 2",
      "SourceSystemId": "sample string 3",
      "TaskTypeId": "5f61ab8d-9d09-4c2f-8304-f6b1b982f7a5",
      "TaskTypeName": "sample string 4",
      "Description": "sample string 5"
    },
    {
      "TaskStatusTypeTaskTypeId": "317f50da-2e1b-420b-8ab2-c6e82c0b3009",
      "CompanyId": "701fdb63-d306-4ff7-8140-3f8dc8c0421f",
      "TaskStatusTypeId": "915a5ef0-aa83-4fe2-8863-729e35b83d5f",
      "TaskStatusTypeName": "sample string 2",
      "SourceSystemId": "sample string 3",
      "TaskTypeId": "5f61ab8d-9d09-4c2f-8304-f6b1b982f7a5",
      "TaskTypeName": "sample string 4",
      "Description": "sample string 5"
    }
  ]
}

Response Information

Resource Description

NameDescriptionTypeAdditional information
Data

TaskType

None.

Total

integer

None.

Message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Data": {
    "TaskTypeId": "a7c21143-4b27-4960-b271-4342f27ad4bf",
    "Name": "sample string 1",
    "Description": "sample string 2",
    "CustomStatuses": true,
    "Fields": [
      {
        "TaskTypeFieldId": "64eb6c27-8e2f-4ba6-813f-24a2b543c23f",
        "Section": {
          "TaskTypeSectionId": "895daf54-84a4-4a27-9575-3ce5340384e1",
          "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": "891fc7f7-d8fe-428b-bb3a-fbc38a78da40",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "7517a086-9477-4f3f-90cf-0b1b3b0e5097",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "3b78c3ec-aee3-4d42-8374-4e19746ebc29",
          "CreateDate": "2025-07-19T02:23:40.1572047-07:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2025-07-19T02:23:40.1572047-07:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "d8648035-69d7-497c-9416-251ceb0766d8",
            "FieldId": "17051d2c-28d8-4f44-82f7-089c65fecf6c",
            "FieldName": "sample string 1",
            "FieldLable": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "d8648035-69d7-497c-9416-251ceb0766d8",
            "FieldId": "17051d2c-28d8-4f44-82f7-089c65fecf6c",
            "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": "64eb6c27-8e2f-4ba6-813f-24a2b543c23f",
        "Section": {
          "TaskTypeSectionId": "895daf54-84a4-4a27-9575-3ce5340384e1",
          "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": "891fc7f7-d8fe-428b-bb3a-fbc38a78da40",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "7517a086-9477-4f3f-90cf-0b1b3b0e5097",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "3b78c3ec-aee3-4d42-8374-4e19746ebc29",
          "CreateDate": "2025-07-19T02:23:40.1572047-07:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2025-07-19T02:23:40.1572047-07:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "d8648035-69d7-497c-9416-251ceb0766d8",
            "FieldId": "17051d2c-28d8-4f44-82f7-089c65fecf6c",
            "FieldName": "sample string 1",
            "FieldLable": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "d8648035-69d7-497c-9416-251ceb0766d8",
            "FieldId": "17051d2c-28d8-4f44-82f7-089c65fecf6c",
            "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": "d0efb0a6-8b94-4f50-8842-b6a9c9470754",
    "CreateDate": "2025-07-19T02:23:40.1572047-07:00",
    "CreateUser": "sample string 6",
    "LastModifiedDate": "2025-07-19T02:23:40.1572047-07:00",
    "LastModifiedUser": "sample string 7"
  },
  "Total": 1,
  "Message": "sample string 1"
}