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": "c53a82b1-a002-459b-9d0c-817c9657b550",
    "Name": "sample string 1",
    "Description": "sample string 2",
    "CustomStatuses": true,
    "Fields": [
      {
        "TaskTypeFieldId": "a95b68ff-db1e-41ff-83a5-1f74070873f5",
        "Section": {
          "TaskTypeSectionId": "0fee3097-f174-4ef1-9331-59c4cbef877e",
          "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": "08dfd09c-8070-418d-a5f2-58abdfd18783",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "1dced73b-6b11-4ea9-a72f-f42a486359d3",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "7e384591-84ca-449e-826a-adb5d71df951",
          "CreateDate": "2026-03-24T07:54:54.5041973-07:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2026-03-24T07:54:54.5041973-07:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "9133600d-315c-4477-a5c0-c032833383d8",
            "FieldId": "ddfcd1cd-31a5-4a51-8e69-1343ea7bc62d",
            "FieldName": "sample string 1",
            "FieldLabel": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "9133600d-315c-4477-a5c0-c032833383d8",
            "FieldId": "ddfcd1cd-31a5-4a51-8e69-1343ea7bc62d",
            "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": "a95b68ff-db1e-41ff-83a5-1f74070873f5",
        "Section": {
          "TaskTypeSectionId": "0fee3097-f174-4ef1-9331-59c4cbef877e",
          "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": "08dfd09c-8070-418d-a5f2-58abdfd18783",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "1dced73b-6b11-4ea9-a72f-f42a486359d3",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "7e384591-84ca-449e-826a-adb5d71df951",
          "CreateDate": "2026-03-24T07:54:54.5041973-07:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2026-03-24T07:54:54.5041973-07:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "9133600d-315c-4477-a5c0-c032833383d8",
            "FieldId": "ddfcd1cd-31a5-4a51-8e69-1343ea7bc62d",
            "FieldName": "sample string 1",
            "FieldLabel": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "9133600d-315c-4477-a5c0-c032833383d8",
            "FieldId": "ddfcd1cd-31a5-4a51-8e69-1343ea7bc62d",
            "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": "7d082fa2-b493-40de-939c-c194780d32b2",
    "CreateDate": "2026-03-24T07:54:54.5041973-07:00",
    "CreateUser": "sample string 6",
    "LastModifiedDate": "2026-03-24T07:54:54.5041973-07:00",
    "LastModifiedUser": "sample string 7"
  },
  "Associations": [
    {
      "TaskStatusTypeTaskTypeId": "2a1a071d-e4dd-4a81-aedb-21f507401738",
      "CompanyId": "89334a9a-9a86-4c9c-b4e5-824133a20e0a",
      "TaskStatusTypeId": "f68fd5de-3fcf-4489-9263-3d7f3e82c068",
      "TaskStatusTypeName": "sample string 2",
      "SourceSystemId": "sample string 3",
      "TaskTypeId": "5c9a0b4c-67de-4343-86b3-2df92cdcb7aa",
      "TaskTypeName": "sample string 4",
      "Description": "sample string 5"
    },
    {
      "TaskStatusTypeTaskTypeId": "2a1a071d-e4dd-4a81-aedb-21f507401738",
      "CompanyId": "89334a9a-9a86-4c9c-b4e5-824133a20e0a",
      "TaskStatusTypeId": "f68fd5de-3fcf-4489-9263-3d7f3e82c068",
      "TaskStatusTypeName": "sample string 2",
      "SourceSystemId": "sample string 3",
      "TaskTypeId": "5c9a0b4c-67de-4343-86b3-2df92cdcb7aa",
      "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": "1e17900b-47c7-4aff-9c21-542bf5833b3b",
    "Name": "sample string 1",
    "Description": "sample string 2",
    "CustomStatuses": true,
    "Fields": [
      {
        "TaskTypeFieldId": "b6887157-50c4-427f-9811-855cc32fd1af",
        "Section": {
          "TaskTypeSectionId": "14f3eba3-c374-4b1b-8b73-3190a66de7ef",
          "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": "f72051b9-b869-49d3-8862-6df0baaafa91",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "310398e9-8790-4ef6-97cd-a0ce988ea554",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "6d9fd4f1-7191-41f1-a8c3-9fdbc7d54973",
          "CreateDate": "2026-03-24T07:54:54.5198473-07:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2026-03-24T07:54:54.5198473-07:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "e52b2cba-d67a-4e31-adaf-0d1a43e4ef40",
            "FieldId": "a6334c37-aa4f-4165-8dbf-08de03abbd45",
            "FieldName": "sample string 1",
            "FieldLabel": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "e52b2cba-d67a-4e31-adaf-0d1a43e4ef40",
            "FieldId": "a6334c37-aa4f-4165-8dbf-08de03abbd45",
            "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": "b6887157-50c4-427f-9811-855cc32fd1af",
        "Section": {
          "TaskTypeSectionId": "14f3eba3-c374-4b1b-8b73-3190a66de7ef",
          "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": "f72051b9-b869-49d3-8862-6df0baaafa91",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "310398e9-8790-4ef6-97cd-a0ce988ea554",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "6d9fd4f1-7191-41f1-a8c3-9fdbc7d54973",
          "CreateDate": "2026-03-24T07:54:54.5198473-07:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2026-03-24T07:54:54.5198473-07:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "e52b2cba-d67a-4e31-adaf-0d1a43e4ef40",
            "FieldId": "a6334c37-aa4f-4165-8dbf-08de03abbd45",
            "FieldName": "sample string 1",
            "FieldLabel": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "e52b2cba-d67a-4e31-adaf-0d1a43e4ef40",
            "FieldId": "a6334c37-aa4f-4165-8dbf-08de03abbd45",
            "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": "6788d0b4-018b-4de2-bc04-b088708246bd",
    "CreateDate": "2026-03-24T07:54:54.5198473-07:00",
    "CreateUser": "sample string 6",
    "LastModifiedDate": "2026-03-24T07:54:54.5198473-07:00",
    "LastModifiedUser": "sample string 7"
  },
  "Total": 1,
  "Message": "sample string 1"
}