PUT TaskTypes

Updates the given task type.

Request Information

URI Parameters

None.

Body Parameters

Task - Task type to update. Associations - List of associations between task types and task status types.

TaskTypeParams
NameDescriptionTypeAdditional information
Task

TaskType

None.

Associations

Collection of TaskStatusTypeTaskType

None.

Request Formats

application/json, text/json

Sample:
{
  "Task": {
    "TaskTypeId": "75ce6bce-4944-4c69-adec-2021f95a94a0",
    "Name": "sample string 1",
    "Description": "sample string 2",
    "CustomStatuses": true,
    "Fields": [
      {
        "TaskTypeFieldId": "83f398a3-907b-4576-b45d-99e298f663ac",
        "Section": {
          "TaskTypeSectionId": "8eb3756f-6fe9-4b5e-a348-0930f2b32dd6",
          "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": "f880424c-2438-4aac-986a-7de6a5435359",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "1629e7bf-a29f-48c0-a402-3117a01bab91",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "f6b93e53-066a-48eb-8646-b26254d57e5f",
          "CreateDate": "2025-04-30T13:42:57.0285152-07:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2025-04-30T13:42:57.0285152-07:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "a24e9f33-a82f-48c9-92c9-9175791fefa7",
            "FieldId": "56b95f56-22b5-419d-afb7-027276c13396",
            "FieldName": "sample string 1",
            "FieldLabel": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "a24e9f33-a82f-48c9-92c9-9175791fefa7",
            "FieldId": "56b95f56-22b5-419d-afb7-027276c13396",
            "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": "83f398a3-907b-4576-b45d-99e298f663ac",
        "Section": {
          "TaskTypeSectionId": "8eb3756f-6fe9-4b5e-a348-0930f2b32dd6",
          "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": "f880424c-2438-4aac-986a-7de6a5435359",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "1629e7bf-a29f-48c0-a402-3117a01bab91",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "f6b93e53-066a-48eb-8646-b26254d57e5f",
          "CreateDate": "2025-04-30T13:42:57.0285152-07:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2025-04-30T13:42:57.0285152-07:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "a24e9f33-a82f-48c9-92c9-9175791fefa7",
            "FieldId": "56b95f56-22b5-419d-afb7-027276c13396",
            "FieldName": "sample string 1",
            "FieldLabel": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "a24e9f33-a82f-48c9-92c9-9175791fefa7",
            "FieldId": "56b95f56-22b5-419d-afb7-027276c13396",
            "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": "3d65eaf8-4ae9-4a59-9a9d-ef44a6a71bdf",
    "CreateDate": "2025-04-30T13:42:57.0285152-07:00",
    "CreateUser": "sample string 6",
    "LastModifiedDate": "2025-04-30T13:42:57.0285152-07:00",
    "LastModifiedUser": "sample string 7"
  },
  "Associations": [
    {
      "TaskStatusTypeTaskTypeId": "2ca4014f-90be-4c0e-9bce-dc192050fb43",
      "CompanyId": "7a55374f-fd37-4848-8049-65c4694af2a8",
      "TaskStatusTypeId": "cb365893-1d05-4322-8b20-9877da61fe9d",
      "TaskStatusTypeName": "sample string 2",
      "SourceSystemId": "sample string 3",
      "TaskTypeId": "aebf93b6-6168-4578-aa07-e423662e0ed2",
      "TaskTypeName": "sample string 4",
      "Description": "sample string 5"
    },
    {
      "TaskStatusTypeTaskTypeId": "2ca4014f-90be-4c0e-9bce-dc192050fb43",
      "CompanyId": "7a55374f-fd37-4848-8049-65c4694af2a8",
      "TaskStatusTypeId": "cb365893-1d05-4322-8b20-9877da61fe9d",
      "TaskStatusTypeName": "sample string 2",
      "SourceSystemId": "sample string 3",
      "TaskTypeId": "aebf93b6-6168-4578-aa07-e423662e0ed2",
      "TaskTypeName": "sample string 4",
      "Description": "sample string 5"
    }
  ]
}

Response Information

Resource Description

On success, the updated task type.

NameDescriptionTypeAdditional information
Data

TaskType

None.

Total

integer

None.

Message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Data": {
    "TaskTypeId": "4e91fcfd-05c0-4e52-a272-679cff6cb389",
    "Name": "sample string 1",
    "Description": "sample string 2",
    "CustomStatuses": true,
    "Fields": [
      {
        "TaskTypeFieldId": "9bc0c69d-e4ca-4dd1-8e1d-17315a323469",
        "Section": {
          "TaskTypeSectionId": "e977a1a1-4539-4468-9383-d3ee4cb91a85",
          "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": "bd8ed163-0f73-4c35-9c4c-81308722f489",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "ede94c86-9cc6-4d60-a183-bf933a2d80e1",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "76a9b8a2-cb45-4f5b-be42-f81a05c3ee4c",
          "CreateDate": "2025-04-30T13:42:57.0285152-07:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2025-04-30T13:42:57.0285152-07:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "d03dcdaa-4d95-4c4f-aab2-141499523743",
            "FieldId": "84c8764e-a7a0-4eeb-b4e4-30a15f13feaf",
            "FieldName": "sample string 1",
            "FieldLabel": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "d03dcdaa-4d95-4c4f-aab2-141499523743",
            "FieldId": "84c8764e-a7a0-4eeb-b4e4-30a15f13feaf",
            "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": "9bc0c69d-e4ca-4dd1-8e1d-17315a323469",
        "Section": {
          "TaskTypeSectionId": "e977a1a1-4539-4468-9383-d3ee4cb91a85",
          "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": "bd8ed163-0f73-4c35-9c4c-81308722f489",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "ede94c86-9cc6-4d60-a183-bf933a2d80e1",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "76a9b8a2-cb45-4f5b-be42-f81a05c3ee4c",
          "CreateDate": "2025-04-30T13:42:57.0285152-07:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2025-04-30T13:42:57.0285152-07:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "d03dcdaa-4d95-4c4f-aab2-141499523743",
            "FieldId": "84c8764e-a7a0-4eeb-b4e4-30a15f13feaf",
            "FieldName": "sample string 1",
            "FieldLabel": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "d03dcdaa-4d95-4c4f-aab2-141499523743",
            "FieldId": "84c8764e-a7a0-4eeb-b4e4-30a15f13feaf",
            "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": "bad5056f-7cfd-43a5-8f49-63d929098aea",
    "CreateDate": "2025-04-30T13:42:57.0285152-07:00",
    "CreateUser": "sample string 6",
    "LastModifiedDate": "2025-04-30T13:42:57.0285152-07:00",
    "LastModifiedUser": "sample string 7"
  },
  "Total": 1,
  "Message": "sample string 1"
}