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": "af9c9ffa-eed7-433a-a08f-8b27ea68a054",
    "Name": "sample string 1",
    "Description": "sample string 2",
    "CustomStatuses": true,
    "Fields": [
      {
        "TaskTypeFieldId": "ec3708c4-e6d8-41d5-a835-abac6d4f8123",
        "Section": {
          "TaskTypeSectionId": "a942c097-cfab-4246-b845-48287975585d",
          "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": "742af939-894e-4e9b-9b12-1c2b46aed3e5",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "17364537-d61c-443b-8882-d609693da4bf",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "e3eb1554-5e3a-40fb-b24c-120b3fc05bbb",
          "CreateDate": "2025-11-03T02:19:41.6986618-08:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2025-11-03T02:19:41.6986618-08:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "5479adfd-93a5-429c-bcd6-52ae3baa7f43",
            "FieldId": "d734a8fc-59d8-4b2c-b336-dbc74494862d",
            "FieldName": "sample string 1",
            "FieldLabel": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "5479adfd-93a5-429c-bcd6-52ae3baa7f43",
            "FieldId": "d734a8fc-59d8-4b2c-b336-dbc74494862d",
            "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": "ec3708c4-e6d8-41d5-a835-abac6d4f8123",
        "Section": {
          "TaskTypeSectionId": "a942c097-cfab-4246-b845-48287975585d",
          "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": "742af939-894e-4e9b-9b12-1c2b46aed3e5",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "17364537-d61c-443b-8882-d609693da4bf",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "e3eb1554-5e3a-40fb-b24c-120b3fc05bbb",
          "CreateDate": "2025-11-03T02:19:41.6986618-08:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2025-11-03T02:19:41.6986618-08:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "5479adfd-93a5-429c-bcd6-52ae3baa7f43",
            "FieldId": "d734a8fc-59d8-4b2c-b336-dbc74494862d",
            "FieldName": "sample string 1",
            "FieldLabel": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "5479adfd-93a5-429c-bcd6-52ae3baa7f43",
            "FieldId": "d734a8fc-59d8-4b2c-b336-dbc74494862d",
            "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": "922e8700-681e-4b2f-adba-723f9b056d1a",
    "CreateDate": "2025-11-03T02:19:41.6986618-08:00",
    "CreateUser": "sample string 6",
    "LastModifiedDate": "2025-11-03T02:19:41.6986618-08:00",
    "LastModifiedUser": "sample string 7"
  },
  "Associations": [
    {
      "TaskStatusTypeTaskTypeId": "c4ae2a2f-7bd2-4453-9b6c-2a1dfe030295",
      "CompanyId": "77562428-5d91-4e52-addb-2b3aa8cda757",
      "TaskStatusTypeId": "5ab4f2eb-54bd-4900-94b9-a69d63e6651a",
      "TaskStatusTypeName": "sample string 2",
      "SourceSystemId": "sample string 3",
      "TaskTypeId": "41f1f8ca-1d60-49eb-8fc9-ceb7c2056959",
      "TaskTypeName": "sample string 4",
      "Description": "sample string 5"
    },
    {
      "TaskStatusTypeTaskTypeId": "c4ae2a2f-7bd2-4453-9b6c-2a1dfe030295",
      "CompanyId": "77562428-5d91-4e52-addb-2b3aa8cda757",
      "TaskStatusTypeId": "5ab4f2eb-54bd-4900-94b9-a69d63e6651a",
      "TaskStatusTypeName": "sample string 2",
      "SourceSystemId": "sample string 3",
      "TaskTypeId": "41f1f8ca-1d60-49eb-8fc9-ceb7c2056959",
      "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": "707c77f1-d228-45ab-bd3f-c1c2594ff1f7",
    "Name": "sample string 1",
    "Description": "sample string 2",
    "CustomStatuses": true,
    "Fields": [
      {
        "TaskTypeFieldId": "e393ba39-5406-42a9-a4a9-5162da3d187b",
        "Section": {
          "TaskTypeSectionId": "8789787c-65f5-4c17-9a53-5fd05df1f06a",
          "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": "a60ade12-d072-45b9-ab68-05bcb5b05891",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "be7e5d88-aec0-4df0-9c22-ee2e1652fd25",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "cc4b74b4-b6b6-4864-8071-9ebfbdd5735a",
          "CreateDate": "2025-11-03T02:19:41.6986618-08:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2025-11-03T02:19:41.6986618-08:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "e9ba3d23-bd78-4e81-85e6-2b79760cae06",
            "FieldId": "cd9b774a-fd7a-4231-9247-bb986d838afb",
            "FieldName": "sample string 1",
            "FieldLabel": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "e9ba3d23-bd78-4e81-85e6-2b79760cae06",
            "FieldId": "cd9b774a-fd7a-4231-9247-bb986d838afb",
            "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": "e393ba39-5406-42a9-a4a9-5162da3d187b",
        "Section": {
          "TaskTypeSectionId": "8789787c-65f5-4c17-9a53-5fd05df1f06a",
          "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": "a60ade12-d072-45b9-ab68-05bcb5b05891",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "be7e5d88-aec0-4df0-9c22-ee2e1652fd25",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "cc4b74b4-b6b6-4864-8071-9ebfbdd5735a",
          "CreateDate": "2025-11-03T02:19:41.6986618-08:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2025-11-03T02:19:41.6986618-08:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "e9ba3d23-bd78-4e81-85e6-2b79760cae06",
            "FieldId": "cd9b774a-fd7a-4231-9247-bb986d838afb",
            "FieldName": "sample string 1",
            "FieldLabel": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "e9ba3d23-bd78-4e81-85e6-2b79760cae06",
            "FieldId": "cd9b774a-fd7a-4231-9247-bb986d838afb",
            "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": "c1ce5a87-e93b-4764-acce-d8210b1bcbb6",
    "CreateDate": "2025-11-03T02:19:41.6986618-08:00",
    "CreateUser": "sample string 6",
    "LastModifiedDate": "2025-11-03T02:19:41.6986618-08:00",
    "LastModifiedUser": "sample string 7"
  },
  "Total": 1,
  "Message": "sample string 1"
}