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": "44115123-8700-47ed-b4ac-e9e0da08ea77",
    "Name": "sample string 1",
    "Description": "sample string 2",
    "CustomStatuses": true,
    "Fields": [
      {
        "TaskTypeFieldId": "c9e554b1-2af0-46bf-b8b6-59bb149ed2f6",
        "Section": {
          "TaskTypeSectionId": "c0600dfd-71bc-4a9e-88b9-3da0651d8d4f",
          "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": "1a871d74-aa2d-4076-8a1f-7924c0da895e",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "f0e20905-6e5e-472f-b05d-26834810bb21",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "ed83974b-fa4a-40ed-8943-22d1c6a5d3af",
          "CreateDate": "2025-07-31T03:10:58.7701884-07:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2025-07-31T03:10:58.7701884-07:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "d4b2e38b-ab09-49ae-8bc0-a6a6a946e036",
            "FieldId": "12e1e232-f868-43f5-b476-40fe1a0c7b89",
            "FieldName": "sample string 1",
            "FieldLabel": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "d4b2e38b-ab09-49ae-8bc0-a6a6a946e036",
            "FieldId": "12e1e232-f868-43f5-b476-40fe1a0c7b89",
            "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": "c9e554b1-2af0-46bf-b8b6-59bb149ed2f6",
        "Section": {
          "TaskTypeSectionId": "c0600dfd-71bc-4a9e-88b9-3da0651d8d4f",
          "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": "1a871d74-aa2d-4076-8a1f-7924c0da895e",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "f0e20905-6e5e-472f-b05d-26834810bb21",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "ed83974b-fa4a-40ed-8943-22d1c6a5d3af",
          "CreateDate": "2025-07-31T03:10:58.7701884-07:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2025-07-31T03:10:58.7701884-07:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "d4b2e38b-ab09-49ae-8bc0-a6a6a946e036",
            "FieldId": "12e1e232-f868-43f5-b476-40fe1a0c7b89",
            "FieldName": "sample string 1",
            "FieldLabel": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "d4b2e38b-ab09-49ae-8bc0-a6a6a946e036",
            "FieldId": "12e1e232-f868-43f5-b476-40fe1a0c7b89",
            "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": "6ee6f5b4-081b-4a81-ac08-dffd0b3f29d4",
    "CreateDate": "2025-07-31T03:10:58.7701884-07:00",
    "CreateUser": "sample string 6",
    "LastModifiedDate": "2025-07-31T03:10:58.7701884-07:00",
    "LastModifiedUser": "sample string 7"
  },
  "Associations": [
    {
      "TaskStatusTypeTaskTypeId": "3795afa0-49b1-4fd5-b036-e1021d1fb183",
      "CompanyId": "58036387-6ef1-41e3-8ae7-29e3e84f5e33",
      "TaskStatusTypeId": "f5976382-abd4-4eff-af4d-eda1fda23c4a",
      "TaskStatusTypeName": "sample string 2",
      "SourceSystemId": "sample string 3",
      "TaskTypeId": "d11c4e54-5f69-4bd8-b87e-9c49e122eec9",
      "TaskTypeName": "sample string 4",
      "Description": "sample string 5"
    },
    {
      "TaskStatusTypeTaskTypeId": "3795afa0-49b1-4fd5-b036-e1021d1fb183",
      "CompanyId": "58036387-6ef1-41e3-8ae7-29e3e84f5e33",
      "TaskStatusTypeId": "f5976382-abd4-4eff-af4d-eda1fda23c4a",
      "TaskStatusTypeName": "sample string 2",
      "SourceSystemId": "sample string 3",
      "TaskTypeId": "d11c4e54-5f69-4bd8-b87e-9c49e122eec9",
      "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": "7225b5c9-ee2b-4210-aba0-4ddab96c0740",
    "Name": "sample string 1",
    "Description": "sample string 2",
    "CustomStatuses": true,
    "Fields": [
      {
        "TaskTypeFieldId": "e160101d-e5f1-4a28-b755-b546693cb10b",
        "Section": {
          "TaskTypeSectionId": "08d763b1-f168-4a6e-a6de-91ff42fc60b3",
          "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": "4489a39d-825b-4feb-af4a-a1d528dcda37",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "40c6e69b-69c1-4dcd-b1f0-c2bc416276e6",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "12f73aa8-d0e8-447b-93e5-df61f7a2b43c",
          "CreateDate": "2025-07-31T03:10:58.7701884-07:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2025-07-31T03:10:58.7701884-07:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "eab38d99-f89b-46bc-bd20-341d836aa0f4",
            "FieldId": "9d1ba962-09ab-4b2d-8fb8-65ffbc184612",
            "FieldName": "sample string 1",
            "FieldLabel": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "eab38d99-f89b-46bc-bd20-341d836aa0f4",
            "FieldId": "9d1ba962-09ab-4b2d-8fb8-65ffbc184612",
            "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": "e160101d-e5f1-4a28-b755-b546693cb10b",
        "Section": {
          "TaskTypeSectionId": "08d763b1-f168-4a6e-a6de-91ff42fc60b3",
          "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": "4489a39d-825b-4feb-af4a-a1d528dcda37",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "40c6e69b-69c1-4dcd-b1f0-c2bc416276e6",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "12f73aa8-d0e8-447b-93e5-df61f7a2b43c",
          "CreateDate": "2025-07-31T03:10:58.7701884-07:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2025-07-31T03:10:58.7701884-07:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "eab38d99-f89b-46bc-bd20-341d836aa0f4",
            "FieldId": "9d1ba962-09ab-4b2d-8fb8-65ffbc184612",
            "FieldName": "sample string 1",
            "FieldLabel": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "eab38d99-f89b-46bc-bd20-341d836aa0f4",
            "FieldId": "9d1ba962-09ab-4b2d-8fb8-65ffbc184612",
            "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": "abd13f2d-ca0d-4088-a3aa-16934250a464",
    "CreateDate": "2025-07-31T03:10:58.7701884-07:00",
    "CreateUser": "sample string 6",
    "LastModifiedDate": "2025-07-31T03:10:58.7701884-07:00",
    "LastModifiedUser": "sample string 7"
  },
  "Total": 1,
  "Message": "sample string 1"
}