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": "2801563f-e62e-410e-bbdf-7c24355c24fc",
    "Name": "sample string 1",
    "Description": "sample string 2",
    "CustomStatuses": true,
    "Fields": [
      {
        "TaskTypeFieldId": "ad68c3c3-08fd-4759-8a22-dc323fb27fad",
        "Section": {
          "TaskTypeSectionId": "e1c0f3ab-8b16-4c71-b50a-8b737eaafadf",
          "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": "29c59fb8-553a-4a20-b24e-9c3b9a4130bb",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "036375a1-e702-4462-be53-b65cc35b8085",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "9e217132-690b-4470-b441-9805d618d31d",
          "CreateDate": "2025-12-01T15:14:44.3070619-08:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2025-12-01T15:14:44.3070619-08:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "f9540e70-e3eb-4f5c-92d6-6892bb904e0e",
            "FieldId": "1705c01c-2128-4184-b50b-7f5a3e6fecbe",
            "FieldName": "sample string 1",
            "FieldLabel": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "f9540e70-e3eb-4f5c-92d6-6892bb904e0e",
            "FieldId": "1705c01c-2128-4184-b50b-7f5a3e6fecbe",
            "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": "ad68c3c3-08fd-4759-8a22-dc323fb27fad",
        "Section": {
          "TaskTypeSectionId": "e1c0f3ab-8b16-4c71-b50a-8b737eaafadf",
          "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": "29c59fb8-553a-4a20-b24e-9c3b9a4130bb",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "036375a1-e702-4462-be53-b65cc35b8085",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "9e217132-690b-4470-b441-9805d618d31d",
          "CreateDate": "2025-12-01T15:14:44.3070619-08:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2025-12-01T15:14:44.3070619-08:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "f9540e70-e3eb-4f5c-92d6-6892bb904e0e",
            "FieldId": "1705c01c-2128-4184-b50b-7f5a3e6fecbe",
            "FieldName": "sample string 1",
            "FieldLabel": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "f9540e70-e3eb-4f5c-92d6-6892bb904e0e",
            "FieldId": "1705c01c-2128-4184-b50b-7f5a3e6fecbe",
            "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": "119894b0-114c-4b35-abf7-17600c0a4ddc",
    "CreateDate": "2025-12-01T15:14:44.3070619-08:00",
    "CreateUser": "sample string 6",
    "LastModifiedDate": "2025-12-01T15:14:44.3070619-08:00",
    "LastModifiedUser": "sample string 7"
  },
  "Associations": [
    {
      "TaskStatusTypeTaskTypeId": "f1e8def5-4585-47fe-b0ef-4391bf653f99",
      "CompanyId": "4b6ae6d4-7d09-4cc6-bd6c-77ac6bca486f",
      "TaskStatusTypeId": "a74c2e25-f42c-40ef-a292-b2b663c1ed9f",
      "TaskStatusTypeName": "sample string 2",
      "SourceSystemId": "sample string 3",
      "TaskTypeId": "908c2ede-33f1-404c-aa82-21e5e9fbbbd5",
      "TaskTypeName": "sample string 4",
      "Description": "sample string 5"
    },
    {
      "TaskStatusTypeTaskTypeId": "f1e8def5-4585-47fe-b0ef-4391bf653f99",
      "CompanyId": "4b6ae6d4-7d09-4cc6-bd6c-77ac6bca486f",
      "TaskStatusTypeId": "a74c2e25-f42c-40ef-a292-b2b663c1ed9f",
      "TaskStatusTypeName": "sample string 2",
      "SourceSystemId": "sample string 3",
      "TaskTypeId": "908c2ede-33f1-404c-aa82-21e5e9fbbbd5",
      "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": "2d741ff6-ba57-49b9-a21a-38a6b500ac1d",
    "Name": "sample string 1",
    "Description": "sample string 2",
    "CustomStatuses": true,
    "Fields": [
      {
        "TaskTypeFieldId": "81605f16-49d5-4313-a342-3e25c2bd7b3a",
        "Section": {
          "TaskTypeSectionId": "df1e4b88-0540-4e97-baa1-227ce7d2bbee",
          "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": "dc378040-478d-4ef8-ae0d-c1746a72cca7",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "67cc707e-f805-430e-b0bf-f8797bbb6686",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "25498c72-18df-4e53-80a0-5a9ed77c14f8",
          "CreateDate": "2025-12-01T15:14:44.3070619-08:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2025-12-01T15:14:44.3070619-08:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "0a0f0a08-e645-462a-87da-ca7f32ee20b4",
            "FieldId": "6e56c368-f8a8-423c-b548-d71c3a5dbe8c",
            "FieldName": "sample string 1",
            "FieldLabel": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "0a0f0a08-e645-462a-87da-ca7f32ee20b4",
            "FieldId": "6e56c368-f8a8-423c-b548-d71c3a5dbe8c",
            "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": "81605f16-49d5-4313-a342-3e25c2bd7b3a",
        "Section": {
          "TaskTypeSectionId": "df1e4b88-0540-4e97-baa1-227ce7d2bbee",
          "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": "dc378040-478d-4ef8-ae0d-c1746a72cca7",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "67cc707e-f805-430e-b0bf-f8797bbb6686",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "25498c72-18df-4e53-80a0-5a9ed77c14f8",
          "CreateDate": "2025-12-01T15:14:44.3070619-08:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2025-12-01T15:14:44.3070619-08:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "0a0f0a08-e645-462a-87da-ca7f32ee20b4",
            "FieldId": "6e56c368-f8a8-423c-b548-d71c3a5dbe8c",
            "FieldName": "sample string 1",
            "FieldLabel": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "0a0f0a08-e645-462a-87da-ca7f32ee20b4",
            "FieldId": "6e56c368-f8a8-423c-b548-d71c3a5dbe8c",
            "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": "42ccc9ce-016a-4ef5-bff3-2400a4a27e30",
    "CreateDate": "2025-12-01T15:14:44.3070619-08:00",
    "CreateUser": "sample string 6",
    "LastModifiedDate": "2025-12-01T15:14:44.3070619-08:00",
    "LastModifiedUser": "sample string 7"
  },
  "Total": 1,
  "Message": "sample string 1"
}