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": "b38867d8-12af-4e2d-9eb7-7324ad251c3d",
    "Name": "sample string 1",
    "Description": "sample string 2",
    "CustomStatuses": true,
    "Fields": [
      {
        "TaskTypeFieldId": "c30fa0d4-3862-4382-9138-e5b972550c68",
        "Section": {
          "TaskTypeSectionId": "d7150a2b-81a5-4e7e-b444-7aa7b516bad9",
          "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": "d017adaf-21cf-49b7-bbd4-691ef36003be",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "d29579a9-2614-42e7-ae78-e6b007f3a6de",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "f3e41b1e-9d4b-40e3-a58e-b695edc7a636",
          "CreateDate": "2025-06-30T22:34:29.0311019-07:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2025-06-30T22:34:29.0311019-07:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "372d4867-4ee7-4622-b161-d4cdaad574a2",
            "FieldId": "c53556d8-15da-47f4-a505-75f71f0c5b48",
            "FieldName": "sample string 1",
            "FieldLabel": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "372d4867-4ee7-4622-b161-d4cdaad574a2",
            "FieldId": "c53556d8-15da-47f4-a505-75f71f0c5b48",
            "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": "c30fa0d4-3862-4382-9138-e5b972550c68",
        "Section": {
          "TaskTypeSectionId": "d7150a2b-81a5-4e7e-b444-7aa7b516bad9",
          "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": "d017adaf-21cf-49b7-bbd4-691ef36003be",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "d29579a9-2614-42e7-ae78-e6b007f3a6de",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "f3e41b1e-9d4b-40e3-a58e-b695edc7a636",
          "CreateDate": "2025-06-30T22:34:29.0311019-07:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2025-06-30T22:34:29.0311019-07:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "372d4867-4ee7-4622-b161-d4cdaad574a2",
            "FieldId": "c53556d8-15da-47f4-a505-75f71f0c5b48",
            "FieldName": "sample string 1",
            "FieldLabel": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "372d4867-4ee7-4622-b161-d4cdaad574a2",
            "FieldId": "c53556d8-15da-47f4-a505-75f71f0c5b48",
            "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": "95933ca6-d998-45ea-b629-0b8de4cb7188",
    "CreateDate": "2025-06-30T22:34:29.0311019-07:00",
    "CreateUser": "sample string 6",
    "LastModifiedDate": "2025-06-30T22:34:29.0311019-07:00",
    "LastModifiedUser": "sample string 7"
  },
  "Associations": [
    {
      "TaskStatusTypeTaskTypeId": "c1c06824-f295-4815-a347-4e2e82f72971",
      "CompanyId": "35e3b9e9-c140-4978-9ca6-9c45cc0169f0",
      "TaskStatusTypeId": "945b653b-41a8-46c4-8eb5-5b87091864e0",
      "TaskStatusTypeName": "sample string 2",
      "SourceSystemId": "sample string 3",
      "TaskTypeId": "f332d129-0b4e-49cc-8b3c-e573608c7abc",
      "TaskTypeName": "sample string 4",
      "Description": "sample string 5"
    },
    {
      "TaskStatusTypeTaskTypeId": "c1c06824-f295-4815-a347-4e2e82f72971",
      "CompanyId": "35e3b9e9-c140-4978-9ca6-9c45cc0169f0",
      "TaskStatusTypeId": "945b653b-41a8-46c4-8eb5-5b87091864e0",
      "TaskStatusTypeName": "sample string 2",
      "SourceSystemId": "sample string 3",
      "TaskTypeId": "f332d129-0b4e-49cc-8b3c-e573608c7abc",
      "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": "84156f61-7f40-4870-b1c7-4cfbbb9acb2a",
    "Name": "sample string 1",
    "Description": "sample string 2",
    "CustomStatuses": true,
    "Fields": [
      {
        "TaskTypeFieldId": "0135e357-4236-4bb3-a1af-ceadd3000fd3",
        "Section": {
          "TaskTypeSectionId": "4d5102e5-a76a-4865-9639-51fb76feabaa",
          "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": "198d1d5f-a0c7-4a98-afab-550f51f19c03",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "1cd4ad06-109b-4809-9625-ac47b0def2eb",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "315e3f19-933d-49e1-9772-a0fcedd4283b",
          "CreateDate": "2025-06-30T22:34:29.0311019-07:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2025-06-30T22:34:29.0311019-07:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "fb07c96d-10a6-4c52-9d85-7625b37776c3",
            "FieldId": "03609604-83db-4b65-84e8-2e4564f56d4c",
            "FieldName": "sample string 1",
            "FieldLabel": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "fb07c96d-10a6-4c52-9d85-7625b37776c3",
            "FieldId": "03609604-83db-4b65-84e8-2e4564f56d4c",
            "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": "0135e357-4236-4bb3-a1af-ceadd3000fd3",
        "Section": {
          "TaskTypeSectionId": "4d5102e5-a76a-4865-9639-51fb76feabaa",
          "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": "198d1d5f-a0c7-4a98-afab-550f51f19c03",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "1cd4ad06-109b-4809-9625-ac47b0def2eb",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "315e3f19-933d-49e1-9772-a0fcedd4283b",
          "CreateDate": "2025-06-30T22:34:29.0311019-07:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2025-06-30T22:34:29.0311019-07:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "fb07c96d-10a6-4c52-9d85-7625b37776c3",
            "FieldId": "03609604-83db-4b65-84e8-2e4564f56d4c",
            "FieldName": "sample string 1",
            "FieldLabel": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "fb07c96d-10a6-4c52-9d85-7625b37776c3",
            "FieldId": "03609604-83db-4b65-84e8-2e4564f56d4c",
            "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": "6eaffbfc-4fd1-4281-b9f4-87f3ddf9f996",
    "CreateDate": "2025-06-30T22:34:29.0311019-07:00",
    "CreateUser": "sample string 6",
    "LastModifiedDate": "2025-06-30T22:34:29.0311019-07:00",
    "LastModifiedUser": "sample string 7"
  },
  "Total": 1,
  "Message": "sample string 1"
}