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": "268af8bc-9906-405b-83d7-adb71a4542e1",
    "Name": "sample string 1",
    "Description": "sample string 2",
    "CustomStatuses": true,
    "Fields": [
      {
        "TaskTypeFieldId": "d669788a-98cd-47d7-98ff-5d312e2e0bf1",
        "Section": {
          "TaskTypeSectionId": "20a3b0a4-702b-4e5b-95a1-3e5f6691e0c9",
          "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": "9cd49569-cabd-4505-94b2-246b6bd815d7",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "6d97be57-8b01-445e-bfdd-b565ba820186",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "9d7a6573-4276-40b2-aaa5-5424c4f59392",
          "CreateDate": "2025-09-13T21:11:42.9975903-07:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2025-09-13T21:11:42.9975903-07:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "a631f78b-59a6-45fc-8d62-22d4fb45720f",
            "FieldId": "48eb5342-85a4-4101-87f5-94aaff390fe7",
            "FieldName": "sample string 1",
            "FieldLabel": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "a631f78b-59a6-45fc-8d62-22d4fb45720f",
            "FieldId": "48eb5342-85a4-4101-87f5-94aaff390fe7",
            "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": "d669788a-98cd-47d7-98ff-5d312e2e0bf1",
        "Section": {
          "TaskTypeSectionId": "20a3b0a4-702b-4e5b-95a1-3e5f6691e0c9",
          "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": "9cd49569-cabd-4505-94b2-246b6bd815d7",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "6d97be57-8b01-445e-bfdd-b565ba820186",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "9d7a6573-4276-40b2-aaa5-5424c4f59392",
          "CreateDate": "2025-09-13T21:11:42.9975903-07:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2025-09-13T21:11:42.9975903-07:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "a631f78b-59a6-45fc-8d62-22d4fb45720f",
            "FieldId": "48eb5342-85a4-4101-87f5-94aaff390fe7",
            "FieldName": "sample string 1",
            "FieldLabel": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "a631f78b-59a6-45fc-8d62-22d4fb45720f",
            "FieldId": "48eb5342-85a4-4101-87f5-94aaff390fe7",
            "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": "6a69f69b-9658-4978-ae2c-016560fb03a5",
    "CreateDate": "2025-09-13T21:11:42.9975903-07:00",
    "CreateUser": "sample string 6",
    "LastModifiedDate": "2025-09-13T21:11:42.9975903-07:00",
    "LastModifiedUser": "sample string 7"
  },
  "Associations": [
    {
      "TaskStatusTypeTaskTypeId": "4821210b-e499-451f-9468-b1b2512db7f9",
      "CompanyId": "9ca3c9ef-0c70-46ee-9bdf-c0db228681fc",
      "TaskStatusTypeId": "0048449e-ea4c-4827-ae39-f262e35a014a",
      "TaskStatusTypeName": "sample string 2",
      "SourceSystemId": "sample string 3",
      "TaskTypeId": "b522d32f-3e18-4d90-be84-aef39e388ec6",
      "TaskTypeName": "sample string 4",
      "Description": "sample string 5"
    },
    {
      "TaskStatusTypeTaskTypeId": "4821210b-e499-451f-9468-b1b2512db7f9",
      "CompanyId": "9ca3c9ef-0c70-46ee-9bdf-c0db228681fc",
      "TaskStatusTypeId": "0048449e-ea4c-4827-ae39-f262e35a014a",
      "TaskStatusTypeName": "sample string 2",
      "SourceSystemId": "sample string 3",
      "TaskTypeId": "b522d32f-3e18-4d90-be84-aef39e388ec6",
      "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": "46e2b815-9766-43a2-bf36-3c6750aff954",
    "Name": "sample string 1",
    "Description": "sample string 2",
    "CustomStatuses": true,
    "Fields": [
      {
        "TaskTypeFieldId": "52baea7e-14ed-4ccc-868e-c2afc2742553",
        "Section": {
          "TaskTypeSectionId": "56c132da-4883-4738-9a37-e386653ff829",
          "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": "8fe5cbfc-16d6-44b0-a471-9ade1b53db27",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "39d002ba-efc3-4c0f-99ea-61ae1f970af7",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "e6674ae2-be2f-4b44-be1b-932ba3373077",
          "CreateDate": "2025-09-13T21:11:42.9975903-07:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2025-09-13T21:11:42.9975903-07:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "6d2a012e-4027-4325-a7c1-490d7cc7ef6a",
            "FieldId": "64e20f84-9cac-4641-8aab-04c2f8f9b666",
            "FieldName": "sample string 1",
            "FieldLabel": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "6d2a012e-4027-4325-a7c1-490d7cc7ef6a",
            "FieldId": "64e20f84-9cac-4641-8aab-04c2f8f9b666",
            "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": "52baea7e-14ed-4ccc-868e-c2afc2742553",
        "Section": {
          "TaskTypeSectionId": "56c132da-4883-4738-9a37-e386653ff829",
          "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": "8fe5cbfc-16d6-44b0-a471-9ade1b53db27",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "39d002ba-efc3-4c0f-99ea-61ae1f970af7",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "e6674ae2-be2f-4b44-be1b-932ba3373077",
          "CreateDate": "2025-09-13T21:11:42.9975903-07:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2025-09-13T21:11:42.9975903-07:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "6d2a012e-4027-4325-a7c1-490d7cc7ef6a",
            "FieldId": "64e20f84-9cac-4641-8aab-04c2f8f9b666",
            "FieldName": "sample string 1",
            "FieldLabel": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "6d2a012e-4027-4325-a7c1-490d7cc7ef6a",
            "FieldId": "64e20f84-9cac-4641-8aab-04c2f8f9b666",
            "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": "4158557c-07d8-4d75-b028-5a915e86aeb7",
    "CreateDate": "2025-09-13T21:11:42.9975903-07:00",
    "CreateUser": "sample string 6",
    "LastModifiedDate": "2025-09-13T21:11:42.9975903-07:00",
    "LastModifiedUser": "sample string 7"
  },
  "Total": 1,
  "Message": "sample string 1"
}