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": "21ad4229-0d3e-4745-b9f2-c342ce54325f",
    "Name": "sample string 1",
    "Description": "sample string 2",
    "CustomStatuses": true,
    "Fields": [
      {
        "TaskTypeFieldId": "187ed22f-7252-4eb5-a08e-d957dc321cbe",
        "Section": {
          "TaskTypeSectionId": "bac4808b-316c-48db-ab08-0e9cf5292259",
          "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": "5a1d7991-98d9-4a3c-865d-285989c0eaa7",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "e7ac8bf5-81bb-4de8-b6af-e65e49e4cc8c",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "c01e7ae9-7e9a-4c90-abb7-daca5a3512e5",
          "CreateDate": "2024-11-21T05:03:01.3294356-08:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2024-11-21T05:03:01.3294356-08:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "a874d64f-6d3b-4630-b64e-d7dcfece53c6",
            "FieldId": "fdfff068-ac7d-4c8b-9603-aa2e497a4f5c",
            "FieldName": "sample string 1",
            "FieldLable": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "a874d64f-6d3b-4630-b64e-d7dcfece53c6",
            "FieldId": "fdfff068-ac7d-4c8b-9603-aa2e497a4f5c",
            "FieldName": "sample string 1",
            "FieldLable": "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": "187ed22f-7252-4eb5-a08e-d957dc321cbe",
        "Section": {
          "TaskTypeSectionId": "bac4808b-316c-48db-ab08-0e9cf5292259",
          "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": "5a1d7991-98d9-4a3c-865d-285989c0eaa7",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "e7ac8bf5-81bb-4de8-b6af-e65e49e4cc8c",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "c01e7ae9-7e9a-4c90-abb7-daca5a3512e5",
          "CreateDate": "2024-11-21T05:03:01.3294356-08:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2024-11-21T05:03:01.3294356-08:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "a874d64f-6d3b-4630-b64e-d7dcfece53c6",
            "FieldId": "fdfff068-ac7d-4c8b-9603-aa2e497a4f5c",
            "FieldName": "sample string 1",
            "FieldLable": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "a874d64f-6d3b-4630-b64e-d7dcfece53c6",
            "FieldId": "fdfff068-ac7d-4c8b-9603-aa2e497a4f5c",
            "FieldName": "sample string 1",
            "FieldLable": "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": "82ab051f-4370-4682-a4f5-0fbb3470360a",
    "CreateDate": "2024-11-21T05:03:01.3294356-08:00",
    "CreateUser": "sample string 6",
    "LastModifiedDate": "2024-11-21T05:03:01.3294356-08:00",
    "LastModifiedUser": "sample string 7"
  },
  "Associations": [
    {
      "TaskStatusTypeTaskTypeId": "972b2e0d-20c5-4fa0-a62a-bd7d72de9c1d",
      "CompanyId": "e191fbfd-9a96-488d-b3e5-0153f9b09c04",
      "TaskStatusTypeId": "32cdd57c-a13b-4c28-9875-abf9108f0cc8",
      "TaskStatusTypeName": "sample string 2",
      "SourceSystemId": "sample string 3",
      "TaskTypeId": "024a9367-9e47-4acb-b633-991ff4543846",
      "TaskTypeName": "sample string 4",
      "Description": "sample string 5"
    },
    {
      "TaskStatusTypeTaskTypeId": "972b2e0d-20c5-4fa0-a62a-bd7d72de9c1d",
      "CompanyId": "e191fbfd-9a96-488d-b3e5-0153f9b09c04",
      "TaskStatusTypeId": "32cdd57c-a13b-4c28-9875-abf9108f0cc8",
      "TaskStatusTypeName": "sample string 2",
      "SourceSystemId": "sample string 3",
      "TaskTypeId": "024a9367-9e47-4acb-b633-991ff4543846",
      "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": "dddd0ab2-82cd-4b18-8b65-7814c937492d",
    "Name": "sample string 1",
    "Description": "sample string 2",
    "CustomStatuses": true,
    "Fields": [
      {
        "TaskTypeFieldId": "ac4f76d3-d79e-422f-84d8-fbc62d3b9acd",
        "Section": {
          "TaskTypeSectionId": "5d39fd4e-0574-43c8-8bdb-8d38914afe38",
          "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": "3ddb4f61-28ed-465a-a3b6-454d033da4fc",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "7080de24-41ec-40b4-9b68-45acd5f2c189",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "1fc5387c-3a9f-44f7-bf36-212ccb958d3b",
          "CreateDate": "2024-11-21T05:03:01.3294356-08:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2024-11-21T05:03:01.3294356-08:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "98f1ceb0-eb03-4d72-84da-887c3d1c85cd",
            "FieldId": "b344dd64-c209-43e0-a774-fd7ef4653bee",
            "FieldName": "sample string 1",
            "FieldLable": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "98f1ceb0-eb03-4d72-84da-887c3d1c85cd",
            "FieldId": "b344dd64-c209-43e0-a774-fd7ef4653bee",
            "FieldName": "sample string 1",
            "FieldLable": "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": "ac4f76d3-d79e-422f-84d8-fbc62d3b9acd",
        "Section": {
          "TaskTypeSectionId": "5d39fd4e-0574-43c8-8bdb-8d38914afe38",
          "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": "3ddb4f61-28ed-465a-a3b6-454d033da4fc",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "7080de24-41ec-40b4-9b68-45acd5f2c189",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "1fc5387c-3a9f-44f7-bf36-212ccb958d3b",
          "CreateDate": "2024-11-21T05:03:01.3294356-08:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2024-11-21T05:03:01.3294356-08:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "98f1ceb0-eb03-4d72-84da-887c3d1c85cd",
            "FieldId": "b344dd64-c209-43e0-a774-fd7ef4653bee",
            "FieldName": "sample string 1",
            "FieldLable": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "98f1ceb0-eb03-4d72-84da-887c3d1c85cd",
            "FieldId": "b344dd64-c209-43e0-a774-fd7ef4653bee",
            "FieldName": "sample string 1",
            "FieldLable": "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": "39b20cfb-b4eb-4ed1-af38-7d56b42a6cc2",
    "CreateDate": "2024-11-21T05:03:01.3294356-08:00",
    "CreateUser": "sample string 6",
    "LastModifiedDate": "2024-11-21T05:03:01.3294356-08:00",
    "LastModifiedUser": "sample string 7"
  },
  "Total": 1,
  "Message": "sample string 1"
}