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": "acb603cc-65ad-4c8d-aaa5-5ef8aaca1aaa",
    "Name": "sample string 1",
    "Description": "sample string 2",
    "CustomStatuses": true,
    "Fields": [
      {
        "TaskTypeFieldId": "4c93cbc5-a657-46bc-85b3-c0c395bad3d0",
        "Section": {
          "TaskTypeSectionId": "d172ed7b-0a74-4f4e-900d-d64800f817ed",
          "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": "3901a862-2523-4431-942d-c874ef289c8d",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "f6f7cc5a-8c69-4def-9755-8c867fdcd3f6",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "9d2bd7fa-255a-4eb7-b4bc-d459f8ed518e",
          "CreateDate": "2024-12-03T06:50:18.1607445-08:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2024-12-03T06:50:18.1607445-08:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "3a144a65-2f29-4168-b175-d56b14add218",
            "FieldId": "504761ca-0ac2-4897-810b-15396694efc4",
            "FieldName": "sample string 1",
            "FieldLabel": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "3a144a65-2f29-4168-b175-d56b14add218",
            "FieldId": "504761ca-0ac2-4897-810b-15396694efc4",
            "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": "4c93cbc5-a657-46bc-85b3-c0c395bad3d0",
        "Section": {
          "TaskTypeSectionId": "d172ed7b-0a74-4f4e-900d-d64800f817ed",
          "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": "3901a862-2523-4431-942d-c874ef289c8d",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "f6f7cc5a-8c69-4def-9755-8c867fdcd3f6",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "9d2bd7fa-255a-4eb7-b4bc-d459f8ed518e",
          "CreateDate": "2024-12-03T06:50:18.1607445-08:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2024-12-03T06:50:18.1607445-08:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "3a144a65-2f29-4168-b175-d56b14add218",
            "FieldId": "504761ca-0ac2-4897-810b-15396694efc4",
            "FieldName": "sample string 1",
            "FieldLabel": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "3a144a65-2f29-4168-b175-d56b14add218",
            "FieldId": "504761ca-0ac2-4897-810b-15396694efc4",
            "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": "365e3040-66b5-47d4-a076-ef6277930733",
    "CreateDate": "2024-12-03T06:50:18.1607445-08:00",
    "CreateUser": "sample string 6",
    "LastModifiedDate": "2024-12-03T06:50:18.1607445-08:00",
    "LastModifiedUser": "sample string 7"
  },
  "Associations": [
    {
      "TaskStatusTypeTaskTypeId": "2907a307-4067-455a-aa58-b01ca637faf6",
      "CompanyId": "a6c42bf6-d315-427b-be2d-45520c4598fe",
      "TaskStatusTypeId": "cddb4534-593b-4001-82b2-296e9235a682",
      "TaskStatusTypeName": "sample string 2",
      "SourceSystemId": "sample string 3",
      "TaskTypeId": "94235501-9c00-4054-9aa0-846ee4fe2531",
      "TaskTypeName": "sample string 4",
      "Description": "sample string 5"
    },
    {
      "TaskStatusTypeTaskTypeId": "2907a307-4067-455a-aa58-b01ca637faf6",
      "CompanyId": "a6c42bf6-d315-427b-be2d-45520c4598fe",
      "TaskStatusTypeId": "cddb4534-593b-4001-82b2-296e9235a682",
      "TaskStatusTypeName": "sample string 2",
      "SourceSystemId": "sample string 3",
      "TaskTypeId": "94235501-9c00-4054-9aa0-846ee4fe2531",
      "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": "188df357-88eb-495d-a1e5-b93f6ec35217",
    "Name": "sample string 1",
    "Description": "sample string 2",
    "CustomStatuses": true,
    "Fields": [
      {
        "TaskTypeFieldId": "09a06981-6226-49f4-ad04-2a36a38953da",
        "Section": {
          "TaskTypeSectionId": "69ebb240-4ec2-4690-a5a3-8e518f310aaf",
          "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": "0996cbb7-cdaf-4fff-ab0c-dc2918458b0e",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "bc318293-fb76-4ba5-9ef8-540ecaa8dafc",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "63940d42-0c42-439b-98e4-1eaa51c397a5",
          "CreateDate": "2024-12-03T06:50:18.5044949-08:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2024-12-03T06:50:18.5044949-08:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "05c8a78d-1f44-4a1a-b166-ec4c1b22d17e",
            "FieldId": "af7e7555-fefe-44ef-86d0-1391f347db2a",
            "FieldName": "sample string 1",
            "FieldLabel": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "05c8a78d-1f44-4a1a-b166-ec4c1b22d17e",
            "FieldId": "af7e7555-fefe-44ef-86d0-1391f347db2a",
            "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": "09a06981-6226-49f4-ad04-2a36a38953da",
        "Section": {
          "TaskTypeSectionId": "69ebb240-4ec2-4690-a5a3-8e518f310aaf",
          "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": "0996cbb7-cdaf-4fff-ab0c-dc2918458b0e",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "bc318293-fb76-4ba5-9ef8-540ecaa8dafc",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "63940d42-0c42-439b-98e4-1eaa51c397a5",
          "CreateDate": "2024-12-03T06:50:18.5044949-08:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2024-12-03T06:50:18.5044949-08:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "05c8a78d-1f44-4a1a-b166-ec4c1b22d17e",
            "FieldId": "af7e7555-fefe-44ef-86d0-1391f347db2a",
            "FieldName": "sample string 1",
            "FieldLabel": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "05c8a78d-1f44-4a1a-b166-ec4c1b22d17e",
            "FieldId": "af7e7555-fefe-44ef-86d0-1391f347db2a",
            "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": "9e6b7d2a-3393-4872-824c-d26da0b5c666",
    "CreateDate": "2024-12-03T06:50:18.5044949-08:00",
    "CreateUser": "sample string 6",
    "LastModifiedDate": "2024-12-03T06:50:18.5044949-08:00",
    "LastModifiedUser": "sample string 7"
  },
  "Total": 1,
  "Message": "sample string 1"
}