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": "16c3c412-4c0c-4cd9-b447-b70260768f8f",
    "Name": "sample string 1",
    "Description": "sample string 2",
    "CustomStatuses": true,
    "Fields": [
      {
        "TaskTypeFieldId": "9b5ef43d-aec2-422e-8e6c-606d84e95396",
        "Section": {
          "TaskTypeSectionId": "0d00fb32-aa62-4bbe-884d-9f7b1e99bdc2",
          "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": "68b8e04f-70de-491d-8526-a81b2debe4d1",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "b3273beb-3b88-4685-8ef5-524ab235eae7",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "5bc6c111-5877-44da-bf03-7179c62744ee",
          "CreateDate": "2024-12-21T19:18:05.8205793-08:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2024-12-21T19:18:05.8205793-08:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "4f1eb6d7-5464-4cd6-b71a-b4a168f4a718",
            "FieldId": "0f982b31-3b8d-40af-8262-fd7e34b37d14",
            "FieldName": "sample string 1",
            "FieldLable": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "4f1eb6d7-5464-4cd6-b71a-b4a168f4a718",
            "FieldId": "0f982b31-3b8d-40af-8262-fd7e34b37d14",
            "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": "9b5ef43d-aec2-422e-8e6c-606d84e95396",
        "Section": {
          "TaskTypeSectionId": "0d00fb32-aa62-4bbe-884d-9f7b1e99bdc2",
          "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": "68b8e04f-70de-491d-8526-a81b2debe4d1",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "b3273beb-3b88-4685-8ef5-524ab235eae7",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "5bc6c111-5877-44da-bf03-7179c62744ee",
          "CreateDate": "2024-12-21T19:18:05.8205793-08:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2024-12-21T19:18:05.8205793-08:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "4f1eb6d7-5464-4cd6-b71a-b4a168f4a718",
            "FieldId": "0f982b31-3b8d-40af-8262-fd7e34b37d14",
            "FieldName": "sample string 1",
            "FieldLable": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "4f1eb6d7-5464-4cd6-b71a-b4a168f4a718",
            "FieldId": "0f982b31-3b8d-40af-8262-fd7e34b37d14",
            "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": "6b2e172f-d2d9-4bb1-acd0-6e04fc343e01",
    "CreateDate": "2024-12-21T19:18:05.8205793-08:00",
    "CreateUser": "sample string 6",
    "LastModifiedDate": "2024-12-21T19:18:05.8205793-08:00",
    "LastModifiedUser": "sample string 7"
  },
  "Associations": [
    {
      "TaskStatusTypeTaskTypeId": "6234beb0-ab3e-4935-bb95-f375637e611b",
      "CompanyId": "52cf622b-c74e-4201-a66e-8acb9ebc9245",
      "TaskStatusTypeId": "ccc2f6dc-104c-4040-b12c-087c9e79ac3d",
      "TaskStatusTypeName": "sample string 2",
      "SourceSystemId": "sample string 3",
      "TaskTypeId": "d2f1506e-9de6-4254-9c28-258273505c49",
      "TaskTypeName": "sample string 4",
      "Description": "sample string 5"
    },
    {
      "TaskStatusTypeTaskTypeId": "6234beb0-ab3e-4935-bb95-f375637e611b",
      "CompanyId": "52cf622b-c74e-4201-a66e-8acb9ebc9245",
      "TaskStatusTypeId": "ccc2f6dc-104c-4040-b12c-087c9e79ac3d",
      "TaskStatusTypeName": "sample string 2",
      "SourceSystemId": "sample string 3",
      "TaskTypeId": "d2f1506e-9de6-4254-9c28-258273505c49",
      "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": "6445147b-1dd7-4c04-a33d-19a0a8a8840e",
    "Name": "sample string 1",
    "Description": "sample string 2",
    "CustomStatuses": true,
    "Fields": [
      {
        "TaskTypeFieldId": "297681c7-6ccd-444f-b262-ce715e157511",
        "Section": {
          "TaskTypeSectionId": "d62fa73f-c760-4293-aa6b-1062b0e61789",
          "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": "af9839b6-7300-49b7-8b93-057539d08ace",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "17c23a5f-1a13-463a-b3d7-dfcb2ec46657",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "ff20acc8-6313-471f-a5d5-7fbc05668646",
          "CreateDate": "2024-12-21T19:18:05.8361675-08:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2024-12-21T19:18:05.8361675-08:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "09407d77-61b6-4cdd-bd40-cf6039d121f3",
            "FieldId": "71a24828-6165-4c9e-99b5-a47a0cc342e9",
            "FieldName": "sample string 1",
            "FieldLable": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "09407d77-61b6-4cdd-bd40-cf6039d121f3",
            "FieldId": "71a24828-6165-4c9e-99b5-a47a0cc342e9",
            "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": "297681c7-6ccd-444f-b262-ce715e157511",
        "Section": {
          "TaskTypeSectionId": "d62fa73f-c760-4293-aa6b-1062b0e61789",
          "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": "af9839b6-7300-49b7-8b93-057539d08ace",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "17c23a5f-1a13-463a-b3d7-dfcb2ec46657",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "ff20acc8-6313-471f-a5d5-7fbc05668646",
          "CreateDate": "2024-12-21T19:18:05.8361675-08:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2024-12-21T19:18:05.8361675-08:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "09407d77-61b6-4cdd-bd40-cf6039d121f3",
            "FieldId": "71a24828-6165-4c9e-99b5-a47a0cc342e9",
            "FieldName": "sample string 1",
            "FieldLable": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "09407d77-61b6-4cdd-bd40-cf6039d121f3",
            "FieldId": "71a24828-6165-4c9e-99b5-a47a0cc342e9",
            "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": "8a4d9100-3348-4b35-919e-fb08917473d1",
    "CreateDate": "2024-12-21T19:18:05.8361675-08:00",
    "CreateUser": "sample string 6",
    "LastModifiedDate": "2024-12-21T19:18:05.8361675-08:00",
    "LastModifiedUser": "sample string 7"
  },
  "Total": 1,
  "Message": "sample string 1"
}