POST TaskTypes

Creates a new task type.

Request Information

URI Parameters

None.

Body Parameters

The task type to create. TaskTypeId should not be filled in.

TaskType
NameDescriptionTypeAdditional information
TaskTypeId

globally unique identifier

None.

Name

string

None.

Description

string

None.

Fields

Collection of TaskTypeField

None.

SourceSystemId

string

None.

CompanyId

globally unique identifier

None.

CreateDate

date

None.

CreateUser

string

None.

LastModifiedDate

date

None.

LastModifiedUser

string

None.

Request Formats

application/json, text/json

Sample:
{
  "TaskTypeId": "35c25d3a-6bca-43b6-8574-22d207ef2af2",
  "Name": "sample string 1",
  "Description": "sample string 2",
  "Fields": [
    {
      "TaskTypeFieldId": "13b91722-b7fe-4fe0-9703-0f8c570f740c",
      "Section": {
        "TaskTypeSectionId": "e55bd4f8-12f7-4a25-850a-13dd8d46fa64",
        "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": "50d072e2-5364-4755-a759-32ee6074a6f1",
        "Name": "sample string 1"
      },
      "Unit": {
        "UnitId": "1d530656-bb31-4b56-b26c-d669c88698c2",
        "Code": "sample string 1",
        "Description": "sample string 2",
        "SourceSystemId": "sample string 3",
        "CompanyId": "3b71a5b3-284f-467f-b16f-6efb5724fff7",
        "CreateDate": "2022-11-27T04:35:33.6238988-08:00",
        "CreateUser": "sample string 5",
        "LastModifiedDate": "2022-11-27T04:35:33.6238988-08:00",
        "LastModifiedUser": "sample string 6"
      },
      "DisplayOrder": 1,
      "MinValue": 1.0,
      "MaxValue": 1.0,
      "MinLength": 1,
      "MaxLength": 1,
      "HasValidValues": true,
      "ValidValues": [
        "sample string 1",
        "sample string 2"
      ],
      "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": "13b91722-b7fe-4fe0-9703-0f8c570f740c",
      "Section": {
        "TaskTypeSectionId": "e55bd4f8-12f7-4a25-850a-13dd8d46fa64",
        "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": "50d072e2-5364-4755-a759-32ee6074a6f1",
        "Name": "sample string 1"
      },
      "Unit": {
        "UnitId": "1d530656-bb31-4b56-b26c-d669c88698c2",
        "Code": "sample string 1",
        "Description": "sample string 2",
        "SourceSystemId": "sample string 3",
        "CompanyId": "3b71a5b3-284f-467f-b16f-6efb5724fff7",
        "CreateDate": "2022-11-27T04:35:33.6238988-08:00",
        "CreateUser": "sample string 5",
        "LastModifiedDate": "2022-11-27T04:35:33.6238988-08:00",
        "LastModifiedUser": "sample string 6"
      },
      "DisplayOrder": 1,
      "MinValue": 1.0,
      "MaxValue": 1.0,
      "MinLength": 1,
      "MaxLength": 1,
      "HasValidValues": true,
      "ValidValues": [
        "sample string 1",
        "sample string 2"
      ],
      "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 3",
  "CompanyId": "3acbffc7-6e1f-4774-bc9a-e1018f2688f5",
  "CreateDate": "2022-11-27T04:35:33.6238988-08:00",
  "CreateUser": "sample string 5",
  "LastModifiedDate": "2022-11-27T04:35:33.6238988-08:00",
  "LastModifiedUser": "sample string 6"
}

Response Information

Resource Description

On success, the created task type.

NameDescriptionTypeAdditional information
Data

TaskType

None.

Total

integer

None.

Message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Data": {
    "TaskTypeId": "d988bfe8-6cf7-4e31-86d9-80b5125ef1df",
    "Name": "sample string 1",
    "Description": "sample string 2",
    "Fields": [
      {
        "TaskTypeFieldId": "0ec8cd99-1778-4560-be00-d21eff2b942a",
        "Section": {
          "TaskTypeSectionId": "14387e61-ba4d-4d0a-a357-2b3342a254f5",
          "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": "b618707b-a937-4539-b47d-008b37dbbd21",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "59739634-7568-4cd3-a41e-304cf3c470e4",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "32e24f57-d221-489b-bec4-31e1faf2bc99",
          "CreateDate": "2022-11-27T04:35:33.6238988-08:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2022-11-27T04:35:33.6238988-08:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          "sample string 1",
          "sample string 2"
        ],
        "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": "0ec8cd99-1778-4560-be00-d21eff2b942a",
        "Section": {
          "TaskTypeSectionId": "14387e61-ba4d-4d0a-a357-2b3342a254f5",
          "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": "b618707b-a937-4539-b47d-008b37dbbd21",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "59739634-7568-4cd3-a41e-304cf3c470e4",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "32e24f57-d221-489b-bec4-31e1faf2bc99",
          "CreateDate": "2022-11-27T04:35:33.6238988-08:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2022-11-27T04:35:33.6238988-08:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          "sample string 1",
          "sample string 2"
        ],
        "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 3",
    "CompanyId": "2b1e592d-edc5-4b80-b412-c4f938f6c215",
    "CreateDate": "2022-11-27T04:35:33.6238988-08:00",
    "CreateUser": "sample string 5",
    "LastModifiedDate": "2022-11-27T04:35:33.6238988-08:00",
    "LastModifiedUser": "sample string 6"
  },
  "Total": 1,
  "Message": "sample string 1"
}