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": "952a6e17-0024-44e4-872c-7edf39103b99",
    "Name": "sample string 1",
    "Description": "sample string 2",
    "CustomStatuses": true,
    "Fields": [
      {
        "TaskTypeFieldId": "93b8f9c1-11b6-4f5e-b2c0-d9f2f2c8fd84",
        "Section": {
          "TaskTypeSectionId": "047f64bd-d935-4c33-a959-5e1e9b408584",
          "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": "9abfc0ee-5991-4390-b9df-20776b63299d",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "8e168c6a-1c11-47b0-ad28-9ce88f609979",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "54df42d6-2555-4119-8c3d-583ffd008cd0",
          "CreateDate": "2025-09-18T05:32:10.5776934-07:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2025-09-18T05:32:10.5776934-07:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "91229990-7600-4e27-ae27-b0033ad2dfe9",
            "FieldId": "94cc1d16-4006-47db-b33c-448b36702774",
            "FieldName": "sample string 1",
            "FieldLabel": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "91229990-7600-4e27-ae27-b0033ad2dfe9",
            "FieldId": "94cc1d16-4006-47db-b33c-448b36702774",
            "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": "93b8f9c1-11b6-4f5e-b2c0-d9f2f2c8fd84",
        "Section": {
          "TaskTypeSectionId": "047f64bd-d935-4c33-a959-5e1e9b408584",
          "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": "9abfc0ee-5991-4390-b9df-20776b63299d",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "8e168c6a-1c11-47b0-ad28-9ce88f609979",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "54df42d6-2555-4119-8c3d-583ffd008cd0",
          "CreateDate": "2025-09-18T05:32:10.5776934-07:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2025-09-18T05:32:10.5776934-07:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "91229990-7600-4e27-ae27-b0033ad2dfe9",
            "FieldId": "94cc1d16-4006-47db-b33c-448b36702774",
            "FieldName": "sample string 1",
            "FieldLabel": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "91229990-7600-4e27-ae27-b0033ad2dfe9",
            "FieldId": "94cc1d16-4006-47db-b33c-448b36702774",
            "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": "4029a77c-760b-4c14-b386-738e00bfd7a5",
    "CreateDate": "2025-09-18T05:32:10.5776934-07:00",
    "CreateUser": "sample string 6",
    "LastModifiedDate": "2025-09-18T05:32:10.5776934-07:00",
    "LastModifiedUser": "sample string 7"
  },
  "Associations": [
    {
      "TaskStatusTypeTaskTypeId": "666edc9b-a0f1-4b00-b66a-0c9094434e3f",
      "CompanyId": "bcacabc7-4944-427f-a9f3-3334beb6e183",
      "TaskStatusTypeId": "0aec2a69-5212-40c3-8dba-53b1b440f0ee",
      "TaskStatusTypeName": "sample string 2",
      "SourceSystemId": "sample string 3",
      "TaskTypeId": "e79abf25-7e1e-4a06-948d-3fb71bd008b2",
      "TaskTypeName": "sample string 4",
      "Description": "sample string 5"
    },
    {
      "TaskStatusTypeTaskTypeId": "666edc9b-a0f1-4b00-b66a-0c9094434e3f",
      "CompanyId": "bcacabc7-4944-427f-a9f3-3334beb6e183",
      "TaskStatusTypeId": "0aec2a69-5212-40c3-8dba-53b1b440f0ee",
      "TaskStatusTypeName": "sample string 2",
      "SourceSystemId": "sample string 3",
      "TaskTypeId": "e79abf25-7e1e-4a06-948d-3fb71bd008b2",
      "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": "41a3c3f1-d485-420d-a2bb-8d3bc2ae4672",
    "Name": "sample string 1",
    "Description": "sample string 2",
    "CustomStatuses": true,
    "Fields": [
      {
        "TaskTypeFieldId": "0334f387-6d78-4179-948b-5be8bde16d67",
        "Section": {
          "TaskTypeSectionId": "a9614281-75e3-45d8-8858-1cd148bba362",
          "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": "93aafebd-8d0e-45db-93d4-60e4658c379e",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "b0238ad2-62f1-439e-b5ed-c655555b631d",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "e099a56f-b19b-4e2e-8dcf-474005d482f2",
          "CreateDate": "2025-09-18T05:32:10.5933904-07:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2025-09-18T05:32:10.5933904-07:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "5d18871c-afcf-4e99-ae99-923e1f5050fc",
            "FieldId": "6287cff3-4eb8-4820-bd63-d65aa2fc7fcf",
            "FieldName": "sample string 1",
            "FieldLabel": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "5d18871c-afcf-4e99-ae99-923e1f5050fc",
            "FieldId": "6287cff3-4eb8-4820-bd63-d65aa2fc7fcf",
            "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": "0334f387-6d78-4179-948b-5be8bde16d67",
        "Section": {
          "TaskTypeSectionId": "a9614281-75e3-45d8-8858-1cd148bba362",
          "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": "93aafebd-8d0e-45db-93d4-60e4658c379e",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "b0238ad2-62f1-439e-b5ed-c655555b631d",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "e099a56f-b19b-4e2e-8dcf-474005d482f2",
          "CreateDate": "2025-09-18T05:32:10.5933904-07:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2025-09-18T05:32:10.5933904-07:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "5d18871c-afcf-4e99-ae99-923e1f5050fc",
            "FieldId": "6287cff3-4eb8-4820-bd63-d65aa2fc7fcf",
            "FieldName": "sample string 1",
            "FieldLabel": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "5d18871c-afcf-4e99-ae99-923e1f5050fc",
            "FieldId": "6287cff3-4eb8-4820-bd63-d65aa2fc7fcf",
            "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": "612bfc7a-0070-4282-b910-7f2ec19cd98c",
    "CreateDate": "2025-09-18T05:32:10.5933904-07:00",
    "CreateUser": "sample string 6",
    "LastModifiedDate": "2025-09-18T05:32:10.5933904-07:00",
    "LastModifiedUser": "sample string 7"
  },
  "Total": 1,
  "Message": "sample string 1"
}