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": "19cb2b33-9f4a-4ac7-9d36-b8f20a7bd86c",
    "Name": "sample string 1",
    "Description": "sample string 2",
    "CustomStatuses": true,
    "Fields": [
      {
        "TaskTypeFieldId": "4b9dc00b-e17d-4069-af45-2f17cbd809f9",
        "Section": {
          "TaskTypeSectionId": "83e1d464-444d-4ed5-a9ea-92455ad5d2ee",
          "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": "0fd329b2-197a-46a9-96bd-4deffa47d64f",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "190b6028-c2b8-4d22-8e15-27b1b79533ba",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "f41c01fa-ffdb-495a-9083-b51309bb302a",
          "CreateDate": "2024-12-08T07:45:34.1878122-08:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2024-12-08T07:45:34.1878122-08:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "77792dc6-e6e0-4da0-b5c2-aa8df0ffa7d3",
            "FieldId": "24b1e325-b90c-4860-ae6c-9b092b82919b",
            "FieldName": "sample string 1",
            "FieldLabel": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "77792dc6-e6e0-4da0-b5c2-aa8df0ffa7d3",
            "FieldId": "24b1e325-b90c-4860-ae6c-9b092b82919b",
            "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": "4b9dc00b-e17d-4069-af45-2f17cbd809f9",
        "Section": {
          "TaskTypeSectionId": "83e1d464-444d-4ed5-a9ea-92455ad5d2ee",
          "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": "0fd329b2-197a-46a9-96bd-4deffa47d64f",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "190b6028-c2b8-4d22-8e15-27b1b79533ba",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "f41c01fa-ffdb-495a-9083-b51309bb302a",
          "CreateDate": "2024-12-08T07:45:34.1878122-08:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2024-12-08T07:45:34.1878122-08:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "77792dc6-e6e0-4da0-b5c2-aa8df0ffa7d3",
            "FieldId": "24b1e325-b90c-4860-ae6c-9b092b82919b",
            "FieldName": "sample string 1",
            "FieldLabel": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "77792dc6-e6e0-4da0-b5c2-aa8df0ffa7d3",
            "FieldId": "24b1e325-b90c-4860-ae6c-9b092b82919b",
            "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": "6dd99bbd-c987-47e3-9850-fc4d9d5aa957",
    "CreateDate": "2024-12-08T07:45:34.1878122-08:00",
    "CreateUser": "sample string 6",
    "LastModifiedDate": "2024-12-08T07:45:34.1878122-08:00",
    "LastModifiedUser": "sample string 7"
  },
  "Associations": [
    {
      "TaskStatusTypeTaskTypeId": "4ca9be2b-31ee-4672-80c4-9f7bd599f752",
      "CompanyId": "dc68f64a-623b-4cf5-97c6-3200f1c8a83a",
      "TaskStatusTypeId": "aed14d15-4ce2-4e45-bc08-8ead463541db",
      "TaskStatusTypeName": "sample string 2",
      "SourceSystemId": "sample string 3",
      "TaskTypeId": "615aa151-7226-4cb1-97a3-2f74d301dc6d",
      "TaskTypeName": "sample string 4",
      "Description": "sample string 5"
    },
    {
      "TaskStatusTypeTaskTypeId": "4ca9be2b-31ee-4672-80c4-9f7bd599f752",
      "CompanyId": "dc68f64a-623b-4cf5-97c6-3200f1c8a83a",
      "TaskStatusTypeId": "aed14d15-4ce2-4e45-bc08-8ead463541db",
      "TaskStatusTypeName": "sample string 2",
      "SourceSystemId": "sample string 3",
      "TaskTypeId": "615aa151-7226-4cb1-97a3-2f74d301dc6d",
      "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": "71b5e915-315c-4c0a-bc07-839c2665d9f8",
    "Name": "sample string 1",
    "Description": "sample string 2",
    "CustomStatuses": true,
    "Fields": [
      {
        "TaskTypeFieldId": "d8e5264b-fefc-43f8-8b6f-de93541f2efe",
        "Section": {
          "TaskTypeSectionId": "f3cf9cda-9991-40ed-97ef-9634f472a55d",
          "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": "4c67cb70-fc75-4389-972c-253f2702a77d",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "7c76bb6a-00be-4eb9-9808-28028f93a65d",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "b1cf19ae-65e5-431b-bcaa-8214cb945f08",
          "CreateDate": "2024-12-08T07:45:34.1878122-08:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2024-12-08T07:45:34.1878122-08:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "0ba42bc0-f1dc-4544-9608-341998e1cdca",
            "FieldId": "15b1473b-2c61-4d85-a7f0-429342f251c4",
            "FieldName": "sample string 1",
            "FieldLabel": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "0ba42bc0-f1dc-4544-9608-341998e1cdca",
            "FieldId": "15b1473b-2c61-4d85-a7f0-429342f251c4",
            "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": "d8e5264b-fefc-43f8-8b6f-de93541f2efe",
        "Section": {
          "TaskTypeSectionId": "f3cf9cda-9991-40ed-97ef-9634f472a55d",
          "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": "4c67cb70-fc75-4389-972c-253f2702a77d",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "7c76bb6a-00be-4eb9-9808-28028f93a65d",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "b1cf19ae-65e5-431b-bcaa-8214cb945f08",
          "CreateDate": "2024-12-08T07:45:34.1878122-08:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2024-12-08T07:45:34.1878122-08:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "0ba42bc0-f1dc-4544-9608-341998e1cdca",
            "FieldId": "15b1473b-2c61-4d85-a7f0-429342f251c4",
            "FieldName": "sample string 1",
            "FieldLabel": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "0ba42bc0-f1dc-4544-9608-341998e1cdca",
            "FieldId": "15b1473b-2c61-4d85-a7f0-429342f251c4",
            "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": "ff088faa-20c1-47f3-a906-4c36f552e5b5",
    "CreateDate": "2024-12-08T07:45:34.1878122-08:00",
    "CreateUser": "sample string 6",
    "LastModifiedDate": "2024-12-08T07:45:34.1878122-08:00",
    "LastModifiedUser": "sample string 7"
  },
  "Total": 1,
  "Message": "sample string 1"
}