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": "afc7f78c-fe22-4b70-9fd9-f86df63514d5",
    "Name": "sample string 1",
    "Description": "sample string 2",
    "CustomStatuses": true,
    "Fields": [
      {
        "TaskTypeFieldId": "e46ce90b-4d03-4e21-87b2-d0becdea8583",
        "Section": {
          "TaskTypeSectionId": "70d52412-5df1-4ba4-846f-50a98acc2b2c",
          "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": "b8031c13-5329-4f65-afac-ca80bfe2b794",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "7ceb2f93-a964-419e-bed4-d3ff1f15df6d",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "1c22034f-8762-4698-b956-f1ffda25b1b9",
          "CreateDate": "2026-04-05T06:43:48.258809-07:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2026-04-05T06:43:48.258809-07:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "782af97c-32ea-4f3d-94f6-fa4b95ed8fed",
            "FieldId": "159c7d2f-fa52-429f-a7fa-a0ce9369bb40",
            "FieldName": "sample string 1",
            "FieldLabel": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "782af97c-32ea-4f3d-94f6-fa4b95ed8fed",
            "FieldId": "159c7d2f-fa52-429f-a7fa-a0ce9369bb40",
            "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": "e46ce90b-4d03-4e21-87b2-d0becdea8583",
        "Section": {
          "TaskTypeSectionId": "70d52412-5df1-4ba4-846f-50a98acc2b2c",
          "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": "b8031c13-5329-4f65-afac-ca80bfe2b794",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "7ceb2f93-a964-419e-bed4-d3ff1f15df6d",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "1c22034f-8762-4698-b956-f1ffda25b1b9",
          "CreateDate": "2026-04-05T06:43:48.258809-07:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2026-04-05T06:43:48.258809-07:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "782af97c-32ea-4f3d-94f6-fa4b95ed8fed",
            "FieldId": "159c7d2f-fa52-429f-a7fa-a0ce9369bb40",
            "FieldName": "sample string 1",
            "FieldLabel": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "782af97c-32ea-4f3d-94f6-fa4b95ed8fed",
            "FieldId": "159c7d2f-fa52-429f-a7fa-a0ce9369bb40",
            "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": "367e4567-3014-46bd-99cc-ca95c1ff7072",
    "CreateDate": "2026-04-05T06:43:48.258809-07:00",
    "CreateUser": "sample string 6",
    "LastModifiedDate": "2026-04-05T06:43:48.258809-07:00",
    "LastModifiedUser": "sample string 7"
  },
  "Associations": [
    {
      "TaskStatusTypeTaskTypeId": "37096233-57a1-4de2-9be9-48cb5e2859fd",
      "CompanyId": "cd993716-9a32-4a70-985e-cd909941798a",
      "TaskStatusTypeId": "7779ff05-ee38-482a-926f-a387ebd3d7c1",
      "TaskStatusTypeName": "sample string 2",
      "SourceSystemId": "sample string 3",
      "TaskTypeId": "42c4c8f7-464b-4125-9395-1a57e2f4428a",
      "TaskTypeName": "sample string 4",
      "Description": "sample string 5"
    },
    {
      "TaskStatusTypeTaskTypeId": "37096233-57a1-4de2-9be9-48cb5e2859fd",
      "CompanyId": "cd993716-9a32-4a70-985e-cd909941798a",
      "TaskStatusTypeId": "7779ff05-ee38-482a-926f-a387ebd3d7c1",
      "TaskStatusTypeName": "sample string 2",
      "SourceSystemId": "sample string 3",
      "TaskTypeId": "42c4c8f7-464b-4125-9395-1a57e2f4428a",
      "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": "a91caffe-b045-4aa9-8263-3ed1f8791623",
    "Name": "sample string 1",
    "Description": "sample string 2",
    "CustomStatuses": true,
    "Fields": [
      {
        "TaskTypeFieldId": "f1f459bb-ba8b-4f7e-91f0-ef79e34df8e6",
        "Section": {
          "TaskTypeSectionId": "83f480db-e48d-428b-bc16-242e52eeebd2",
          "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": "3e570418-d92c-414a-bdcb-2d0384deea71",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "aa4c903a-c682-4913-9875-fbd9897372d0",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "2fe02572-0284-44a8-9ca2-9e7f8a178d29",
          "CreateDate": "2026-04-05T06:43:48.258809-07:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2026-04-05T06:43:48.258809-07:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "c7549ed1-7134-40be-a75c-5da20d535653",
            "FieldId": "59fe9445-4b9d-40e0-ab0e-e4ccd99f202b",
            "FieldName": "sample string 1",
            "FieldLabel": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "c7549ed1-7134-40be-a75c-5da20d535653",
            "FieldId": "59fe9445-4b9d-40e0-ab0e-e4ccd99f202b",
            "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": "f1f459bb-ba8b-4f7e-91f0-ef79e34df8e6",
        "Section": {
          "TaskTypeSectionId": "83f480db-e48d-428b-bc16-242e52eeebd2",
          "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": "3e570418-d92c-414a-bdcb-2d0384deea71",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "aa4c903a-c682-4913-9875-fbd9897372d0",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "2fe02572-0284-44a8-9ca2-9e7f8a178d29",
          "CreateDate": "2026-04-05T06:43:48.258809-07:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2026-04-05T06:43:48.258809-07:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "c7549ed1-7134-40be-a75c-5da20d535653",
            "FieldId": "59fe9445-4b9d-40e0-ab0e-e4ccd99f202b",
            "FieldName": "sample string 1",
            "FieldLabel": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "c7549ed1-7134-40be-a75c-5da20d535653",
            "FieldId": "59fe9445-4b9d-40e0-ab0e-e4ccd99f202b",
            "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": "d0fa8b0e-77ac-4317-8311-68b9f5b2f9b6",
    "CreateDate": "2026-04-05T06:43:48.258809-07:00",
    "CreateUser": "sample string 6",
    "LastModifiedDate": "2026-04-05T06:43:48.258809-07:00",
    "LastModifiedUser": "sample string 7"
  },
  "Total": 1,
  "Message": "sample string 1"
}