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": "b06fffc4-df00-46c4-9382-0a8a8761c2e8",
    "Name": "sample string 1",
    "Description": "sample string 2",
    "CustomStatuses": true,
    "Fields": [
      {
        "TaskTypeFieldId": "41cf6d6e-9bc1-41ef-85fe-5ec36afbcf96",
        "Section": {
          "TaskTypeSectionId": "ff8277ca-759c-4be5-8997-b20fdde74300",
          "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": "a6876d71-4075-412e-a06b-32d3b4ba646c",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "b07c7c85-6632-4ab6-999b-b59354a78a6d",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "2a8c0afb-29f0-406e-8ade-3fa5a7950fb2",
          "CreateDate": "2025-06-02T06:21:28.8427376-07:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2025-06-02T06:21:28.8427376-07:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "e6d62b97-c873-49c9-9f9a-c911214cdee0",
            "FieldId": "f9985730-9b62-4c40-80d6-33350bf62084",
            "FieldName": "sample string 1",
            "FieldLabel": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "e6d62b97-c873-49c9-9f9a-c911214cdee0",
            "FieldId": "f9985730-9b62-4c40-80d6-33350bf62084",
            "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": "41cf6d6e-9bc1-41ef-85fe-5ec36afbcf96",
        "Section": {
          "TaskTypeSectionId": "ff8277ca-759c-4be5-8997-b20fdde74300",
          "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": "a6876d71-4075-412e-a06b-32d3b4ba646c",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "b07c7c85-6632-4ab6-999b-b59354a78a6d",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "2a8c0afb-29f0-406e-8ade-3fa5a7950fb2",
          "CreateDate": "2025-06-02T06:21:28.8427376-07:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2025-06-02T06:21:28.8427376-07:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "e6d62b97-c873-49c9-9f9a-c911214cdee0",
            "FieldId": "f9985730-9b62-4c40-80d6-33350bf62084",
            "FieldName": "sample string 1",
            "FieldLabel": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "e6d62b97-c873-49c9-9f9a-c911214cdee0",
            "FieldId": "f9985730-9b62-4c40-80d6-33350bf62084",
            "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": "351e0e12-6213-43a6-8d71-89ff58356d3f",
    "CreateDate": "2025-06-02T06:21:28.8427376-07:00",
    "CreateUser": "sample string 6",
    "LastModifiedDate": "2025-06-02T06:21:28.8427376-07:00",
    "LastModifiedUser": "sample string 7"
  },
  "Associations": [
    {
      "TaskStatusTypeTaskTypeId": "4223f984-59e4-43b8-b3e1-9fdaf911b461",
      "CompanyId": "ee3417d7-a6b4-4d85-9872-cb55d2015476",
      "TaskStatusTypeId": "25692e1a-06cf-4908-8cd7-a3586a563b6e",
      "TaskStatusTypeName": "sample string 2",
      "SourceSystemId": "sample string 3",
      "TaskTypeId": "138e4df8-45ca-4afc-8b2c-0113e382cb13",
      "TaskTypeName": "sample string 4",
      "Description": "sample string 5"
    },
    {
      "TaskStatusTypeTaskTypeId": "4223f984-59e4-43b8-b3e1-9fdaf911b461",
      "CompanyId": "ee3417d7-a6b4-4d85-9872-cb55d2015476",
      "TaskStatusTypeId": "25692e1a-06cf-4908-8cd7-a3586a563b6e",
      "TaskStatusTypeName": "sample string 2",
      "SourceSystemId": "sample string 3",
      "TaskTypeId": "138e4df8-45ca-4afc-8b2c-0113e382cb13",
      "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": "20e3645c-f239-400d-9277-5fe448e7669d",
    "Name": "sample string 1",
    "Description": "sample string 2",
    "CustomStatuses": true,
    "Fields": [
      {
        "TaskTypeFieldId": "11654f12-0219-46fd-891d-3cfcbd285502",
        "Section": {
          "TaskTypeSectionId": "3b37c8b1-33f1-4375-b609-deda890c4e58",
          "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": "38024e4a-218e-4ac6-a35e-55172cb01aa1",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "432a2a52-5310-433f-9002-39a8b399bce7",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "be477cc0-eb73-4b7a-ae87-58678a480b93",
          "CreateDate": "2025-06-02T06:21:28.8427376-07:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2025-06-02T06:21:28.8427376-07:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "1e4c1abd-3847-4210-ba1d-1b6c4fc37d27",
            "FieldId": "d66100b4-5617-46bf-a362-ffd6ab037e30",
            "FieldName": "sample string 1",
            "FieldLabel": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "1e4c1abd-3847-4210-ba1d-1b6c4fc37d27",
            "FieldId": "d66100b4-5617-46bf-a362-ffd6ab037e30",
            "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": "11654f12-0219-46fd-891d-3cfcbd285502",
        "Section": {
          "TaskTypeSectionId": "3b37c8b1-33f1-4375-b609-deda890c4e58",
          "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": "38024e4a-218e-4ac6-a35e-55172cb01aa1",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "432a2a52-5310-433f-9002-39a8b399bce7",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "be477cc0-eb73-4b7a-ae87-58678a480b93",
          "CreateDate": "2025-06-02T06:21:28.8427376-07:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2025-06-02T06:21:28.8427376-07:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "1e4c1abd-3847-4210-ba1d-1b6c4fc37d27",
            "FieldId": "d66100b4-5617-46bf-a362-ffd6ab037e30",
            "FieldName": "sample string 1",
            "FieldLabel": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "1e4c1abd-3847-4210-ba1d-1b6c4fc37d27",
            "FieldId": "d66100b4-5617-46bf-a362-ffd6ab037e30",
            "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": "469430aa-8830-4694-885e-418bf1dc0c0f",
    "CreateDate": "2025-06-02T06:21:28.8427376-07:00",
    "CreateUser": "sample string 6",
    "LastModifiedDate": "2025-06-02T06:21:28.8427376-07:00",
    "LastModifiedUser": "sample string 7"
  },
  "Total": 1,
  "Message": "sample string 1"
}