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": "8e00ef50-a861-48b2-ab4a-7e3fe332ca63",
    "Name": "sample string 1",
    "Description": "sample string 2",
    "CustomStatuses": true,
    "Fields": [
      {
        "TaskTypeFieldId": "b86e5cf4-f0bf-4379-81b5-08708ba76bb8",
        "Section": {
          "TaskTypeSectionId": "e5025798-5778-46c8-baee-4150ef81f33f",
          "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": "ceca998b-3e90-4b76-a915-7369cd1c499e",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "02005603-d9f9-4a48-9295-41cddb996677",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "74e51ada-973b-4d9e-8129-e40f48543f79",
          "CreateDate": "2025-12-10T04:59:00.72307-08:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2025-12-10T04:59:00.72307-08:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "7b7ec57c-ac82-4373-844c-faa4f258b4aa",
            "FieldId": "183977e9-67aa-4ec3-9c7f-51320eb81452",
            "FieldName": "sample string 1",
            "FieldLabel": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "7b7ec57c-ac82-4373-844c-faa4f258b4aa",
            "FieldId": "183977e9-67aa-4ec3-9c7f-51320eb81452",
            "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": "b86e5cf4-f0bf-4379-81b5-08708ba76bb8",
        "Section": {
          "TaskTypeSectionId": "e5025798-5778-46c8-baee-4150ef81f33f",
          "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": "ceca998b-3e90-4b76-a915-7369cd1c499e",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "02005603-d9f9-4a48-9295-41cddb996677",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "74e51ada-973b-4d9e-8129-e40f48543f79",
          "CreateDate": "2025-12-10T04:59:00.72307-08:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2025-12-10T04:59:00.72307-08:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "7b7ec57c-ac82-4373-844c-faa4f258b4aa",
            "FieldId": "183977e9-67aa-4ec3-9c7f-51320eb81452",
            "FieldName": "sample string 1",
            "FieldLabel": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "7b7ec57c-ac82-4373-844c-faa4f258b4aa",
            "FieldId": "183977e9-67aa-4ec3-9c7f-51320eb81452",
            "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": "2798b367-2ffc-4c8d-903c-667cb0440f95",
    "CreateDate": "2025-12-10T04:59:00.72307-08:00",
    "CreateUser": "sample string 6",
    "LastModifiedDate": "2025-12-10T04:59:00.72307-08:00",
    "LastModifiedUser": "sample string 7"
  },
  "Associations": [
    {
      "TaskStatusTypeTaskTypeId": "90496761-926d-4767-9574-5cc42bf9e6a8",
      "CompanyId": "3efe994c-e698-4b94-8dd2-3082ab7e7137",
      "TaskStatusTypeId": "e9eb1871-f3fb-4259-b2ca-f7f7fe8ca450",
      "TaskStatusTypeName": "sample string 2",
      "SourceSystemId": "sample string 3",
      "TaskTypeId": "8c1be971-4ba1-41a6-a7ba-08c50eff0eda",
      "TaskTypeName": "sample string 4",
      "Description": "sample string 5"
    },
    {
      "TaskStatusTypeTaskTypeId": "90496761-926d-4767-9574-5cc42bf9e6a8",
      "CompanyId": "3efe994c-e698-4b94-8dd2-3082ab7e7137",
      "TaskStatusTypeId": "e9eb1871-f3fb-4259-b2ca-f7f7fe8ca450",
      "TaskStatusTypeName": "sample string 2",
      "SourceSystemId": "sample string 3",
      "TaskTypeId": "8c1be971-4ba1-41a6-a7ba-08c50eff0eda",
      "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": "4b3a37a0-2eca-4d5c-81f0-d19b7dac8e76",
    "Name": "sample string 1",
    "Description": "sample string 2",
    "CustomStatuses": true,
    "Fields": [
      {
        "TaskTypeFieldId": "8b47d6fd-1fa1-48cd-8178-a331e067f62f",
        "Section": {
          "TaskTypeSectionId": "84f902f8-825d-475b-9637-aede0dbb20e8",
          "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": "e4e31004-0e3c-4d9f-abc6-c043825e99ac",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "c2f510d9-bc9b-4a05-908a-5832e216e995",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "54df95ab-8747-4948-af9b-ee7af75d6b50",
          "CreateDate": "2025-12-10T04:59:00.72307-08:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2025-12-10T04:59:00.72307-08:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "0b6bdc8a-f001-4f18-a8db-115ce78b1039",
            "FieldId": "28f50e28-db07-43c9-a23a-0e52076e915d",
            "FieldName": "sample string 1",
            "FieldLabel": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "0b6bdc8a-f001-4f18-a8db-115ce78b1039",
            "FieldId": "28f50e28-db07-43c9-a23a-0e52076e915d",
            "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": "8b47d6fd-1fa1-48cd-8178-a331e067f62f",
        "Section": {
          "TaskTypeSectionId": "84f902f8-825d-475b-9637-aede0dbb20e8",
          "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": "e4e31004-0e3c-4d9f-abc6-c043825e99ac",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "c2f510d9-bc9b-4a05-908a-5832e216e995",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "54df95ab-8747-4948-af9b-ee7af75d6b50",
          "CreateDate": "2025-12-10T04:59:00.72307-08:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2025-12-10T04:59:00.72307-08:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "0b6bdc8a-f001-4f18-a8db-115ce78b1039",
            "FieldId": "28f50e28-db07-43c9-a23a-0e52076e915d",
            "FieldName": "sample string 1",
            "FieldLabel": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "0b6bdc8a-f001-4f18-a8db-115ce78b1039",
            "FieldId": "28f50e28-db07-43c9-a23a-0e52076e915d",
            "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": "718998c2-5807-4e63-810b-6e411f6ecd1c",
    "CreateDate": "2025-12-10T04:59:00.72307-08:00",
    "CreateUser": "sample string 6",
    "LastModifiedDate": "2025-12-10T04:59:00.72307-08:00",
    "LastModifiedUser": "sample string 7"
  },
  "Total": 1,
  "Message": "sample string 1"
}