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": "771e5167-cba1-4ebd-bc99-118435a7b747",
    "Name": "sample string 1",
    "Description": "sample string 2",
    "CustomStatuses": true,
    "Fields": [
      {
        "TaskTypeFieldId": "5f521772-a78b-42bd-8dd1-f1c2885f1ec2",
        "Section": {
          "TaskTypeSectionId": "967e197c-5587-4afd-9d79-1ba96d56504b",
          "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": "2fd7242f-4c97-45df-bb10-b21d74a0c657",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "a21cfc5d-f25b-417a-bba1-e78c6e7be6bf",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "e667cfbc-914b-41d1-8c4d-20831130941f",
          "CreateDate": "2026-02-02T04:15:39.7909792-08:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2026-02-02T04:15:39.7909792-08:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "486025a7-20a9-44f8-8f55-b5b9b75a761e",
            "FieldId": "f531faed-d20e-4d2c-9684-dfdd49f0c513",
            "FieldName": "sample string 1",
            "FieldLable": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "486025a7-20a9-44f8-8f55-b5b9b75a761e",
            "FieldId": "f531faed-d20e-4d2c-9684-dfdd49f0c513",
            "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": "5f521772-a78b-42bd-8dd1-f1c2885f1ec2",
        "Section": {
          "TaskTypeSectionId": "967e197c-5587-4afd-9d79-1ba96d56504b",
          "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": "2fd7242f-4c97-45df-bb10-b21d74a0c657",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "a21cfc5d-f25b-417a-bba1-e78c6e7be6bf",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "e667cfbc-914b-41d1-8c4d-20831130941f",
          "CreateDate": "2026-02-02T04:15:39.7909792-08:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2026-02-02T04:15:39.7909792-08:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "486025a7-20a9-44f8-8f55-b5b9b75a761e",
            "FieldId": "f531faed-d20e-4d2c-9684-dfdd49f0c513",
            "FieldName": "sample string 1",
            "FieldLable": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "486025a7-20a9-44f8-8f55-b5b9b75a761e",
            "FieldId": "f531faed-d20e-4d2c-9684-dfdd49f0c513",
            "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": "11cbd1a2-1303-41a1-ac34-768205afff20",
    "CreateDate": "2026-02-02T04:15:39.7909792-08:00",
    "CreateUser": "sample string 6",
    "LastModifiedDate": "2026-02-02T04:15:39.7909792-08:00",
    "LastModifiedUser": "sample string 7"
  },
  "Associations": [
    {
      "TaskStatusTypeTaskTypeId": "63d1916e-d053-4030-adc9-dac3bf87e25e",
      "CompanyId": "3ee8ee3d-e478-4b53-87c3-f9fc3172b8a2",
      "TaskStatusTypeId": "2967eae0-a047-44e1-903d-170fb1fdf475",
      "TaskStatusTypeName": "sample string 2",
      "SourceSystemId": "sample string 3",
      "TaskTypeId": "177c170c-b673-4c4d-8125-4985f20058b0",
      "TaskTypeName": "sample string 4",
      "Description": "sample string 5"
    },
    {
      "TaskStatusTypeTaskTypeId": "63d1916e-d053-4030-adc9-dac3bf87e25e",
      "CompanyId": "3ee8ee3d-e478-4b53-87c3-f9fc3172b8a2",
      "TaskStatusTypeId": "2967eae0-a047-44e1-903d-170fb1fdf475",
      "TaskStatusTypeName": "sample string 2",
      "SourceSystemId": "sample string 3",
      "TaskTypeId": "177c170c-b673-4c4d-8125-4985f20058b0",
      "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": "35d898cf-8373-4676-b324-5154dba52a21",
    "Name": "sample string 1",
    "Description": "sample string 2",
    "CustomStatuses": true,
    "Fields": [
      {
        "TaskTypeFieldId": "6c61127a-8545-4e4d-8302-c39052e53f9d",
        "Section": {
          "TaskTypeSectionId": "35e2499e-f21e-4ebf-bd8d-b7c489af4034",
          "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": "b012521e-4154-4d17-be7a-32837d1bf010",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "3b882823-0c80-4cbd-aa81-6590e193d09d",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "26942ce6-d7bb-4a97-ac5f-5d8367c09687",
          "CreateDate": "2026-02-02T04:15:39.8221622-08:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2026-02-02T04:15:39.8221622-08:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "f7d25090-8e5f-40dd-932d-7b97b23ca18f",
            "FieldId": "d3c5682f-fa24-4c4a-9586-b9009e19f200",
            "FieldName": "sample string 1",
            "FieldLable": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "f7d25090-8e5f-40dd-932d-7b97b23ca18f",
            "FieldId": "d3c5682f-fa24-4c4a-9586-b9009e19f200",
            "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": "6c61127a-8545-4e4d-8302-c39052e53f9d",
        "Section": {
          "TaskTypeSectionId": "35e2499e-f21e-4ebf-bd8d-b7c489af4034",
          "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": "b012521e-4154-4d17-be7a-32837d1bf010",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "3b882823-0c80-4cbd-aa81-6590e193d09d",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "26942ce6-d7bb-4a97-ac5f-5d8367c09687",
          "CreateDate": "2026-02-02T04:15:39.8221622-08:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2026-02-02T04:15:39.8221622-08:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "f7d25090-8e5f-40dd-932d-7b97b23ca18f",
            "FieldId": "d3c5682f-fa24-4c4a-9586-b9009e19f200",
            "FieldName": "sample string 1",
            "FieldLable": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "f7d25090-8e5f-40dd-932d-7b97b23ca18f",
            "FieldId": "d3c5682f-fa24-4c4a-9586-b9009e19f200",
            "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": "69aba2f1-10f6-43cd-8c65-8f87b4ee7b27",
    "CreateDate": "2026-02-02T04:15:39.8221622-08:00",
    "CreateUser": "sample string 6",
    "LastModifiedDate": "2026-02-02T04:15:39.8221622-08:00",
    "LastModifiedUser": "sample string 7"
  },
  "Total": 1,
  "Message": "sample string 1"
}