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": "ec06fe58-9214-40fb-be2c-b6896c71b178",
    "Name": "sample string 1",
    "Description": "sample string 2",
    "CustomStatuses": true,
    "Fields": [
      {
        "TaskTypeFieldId": "7bc9cab1-2988-49b0-8815-4996f002c0d3",
        "Section": {
          "TaskTypeSectionId": "7499f14f-0e65-4e4a-bda9-a4b428bbf4de",
          "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": "85bab35e-eb49-4145-a4da-a6e754b5ce10",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "2b6b8ac8-8b4a-4276-bb1f-d185ced4e962",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "c4162bbe-4754-4357-94bc-266bc03a0f8a",
          "CreateDate": "2025-07-03T19:10:28.1990766-07:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2025-07-03T19:10:28.1990766-07:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "87c2cb6c-2401-42f3-bd22-546cb5b32b52",
            "FieldId": "0d34f452-866f-4218-9e4e-43049c90d789",
            "FieldName": "sample string 1",
            "FieldLabel": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "87c2cb6c-2401-42f3-bd22-546cb5b32b52",
            "FieldId": "0d34f452-866f-4218-9e4e-43049c90d789",
            "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": "7bc9cab1-2988-49b0-8815-4996f002c0d3",
        "Section": {
          "TaskTypeSectionId": "7499f14f-0e65-4e4a-bda9-a4b428bbf4de",
          "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": "85bab35e-eb49-4145-a4da-a6e754b5ce10",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "2b6b8ac8-8b4a-4276-bb1f-d185ced4e962",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "c4162bbe-4754-4357-94bc-266bc03a0f8a",
          "CreateDate": "2025-07-03T19:10:28.1990766-07:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2025-07-03T19:10:28.1990766-07:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "87c2cb6c-2401-42f3-bd22-546cb5b32b52",
            "FieldId": "0d34f452-866f-4218-9e4e-43049c90d789",
            "FieldName": "sample string 1",
            "FieldLabel": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "87c2cb6c-2401-42f3-bd22-546cb5b32b52",
            "FieldId": "0d34f452-866f-4218-9e4e-43049c90d789",
            "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": "91a12bc1-05ba-4339-b812-3be2e583cc26",
    "CreateDate": "2025-07-03T19:10:28.1990766-07:00",
    "CreateUser": "sample string 6",
    "LastModifiedDate": "2025-07-03T19:10:28.1990766-07:00",
    "LastModifiedUser": "sample string 7"
  },
  "Associations": [
    {
      "TaskStatusTypeTaskTypeId": "f737afb5-35cb-435f-bd2f-4f42d9fd2b38",
      "CompanyId": "076ec2a2-d160-4a31-b7c1-bdcd38bcd352",
      "TaskStatusTypeId": "183ebb54-c142-4622-8cb0-4a1dee5462e1",
      "TaskStatusTypeName": "sample string 2",
      "SourceSystemId": "sample string 3",
      "TaskTypeId": "c9676ba0-9d29-4d6f-90ef-48c3d7cef49b",
      "TaskTypeName": "sample string 4",
      "Description": "sample string 5"
    },
    {
      "TaskStatusTypeTaskTypeId": "f737afb5-35cb-435f-bd2f-4f42d9fd2b38",
      "CompanyId": "076ec2a2-d160-4a31-b7c1-bdcd38bcd352",
      "TaskStatusTypeId": "183ebb54-c142-4622-8cb0-4a1dee5462e1",
      "TaskStatusTypeName": "sample string 2",
      "SourceSystemId": "sample string 3",
      "TaskTypeId": "c9676ba0-9d29-4d6f-90ef-48c3d7cef49b",
      "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": "96524e37-80bb-482a-9dd6-091a3a009a60",
    "Name": "sample string 1",
    "Description": "sample string 2",
    "CustomStatuses": true,
    "Fields": [
      {
        "TaskTypeFieldId": "8a9362ca-98c8-4356-a80e-2f7722eb2c5a",
        "Section": {
          "TaskTypeSectionId": "33d85b0b-122f-442b-86c7-533421507c74",
          "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": "4582188c-b391-4396-93ee-e9473ebae42c",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "77e23b32-f543-4d70-ada1-70b26083d93c",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "83b55391-4bab-487d-8828-58b2aae71623",
          "CreateDate": "2025-07-03T19:10:28.2146335-07:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2025-07-03T19:10:28.2146335-07:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "b3c9a9ca-2d82-4b6c-9014-a51e9360d415",
            "FieldId": "6dec29ce-2d99-4026-9057-e88a519f62f8",
            "FieldName": "sample string 1",
            "FieldLabel": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "b3c9a9ca-2d82-4b6c-9014-a51e9360d415",
            "FieldId": "6dec29ce-2d99-4026-9057-e88a519f62f8",
            "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": "8a9362ca-98c8-4356-a80e-2f7722eb2c5a",
        "Section": {
          "TaskTypeSectionId": "33d85b0b-122f-442b-86c7-533421507c74",
          "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": "4582188c-b391-4396-93ee-e9473ebae42c",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "77e23b32-f543-4d70-ada1-70b26083d93c",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "83b55391-4bab-487d-8828-58b2aae71623",
          "CreateDate": "2025-07-03T19:10:28.2146335-07:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2025-07-03T19:10:28.2146335-07:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "b3c9a9ca-2d82-4b6c-9014-a51e9360d415",
            "FieldId": "6dec29ce-2d99-4026-9057-e88a519f62f8",
            "FieldName": "sample string 1",
            "FieldLabel": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "b3c9a9ca-2d82-4b6c-9014-a51e9360d415",
            "FieldId": "6dec29ce-2d99-4026-9057-e88a519f62f8",
            "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": "1985db80-dcfb-4a61-9e1b-53116e13f197",
    "CreateDate": "2025-07-03T19:10:28.2146335-07:00",
    "CreateUser": "sample string 6",
    "LastModifiedDate": "2025-07-03T19:10:28.2146335-07:00",
    "LastModifiedUser": "sample string 7"
  },
  "Total": 1,
  "Message": "sample string 1"
}