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": "92b35d5a-50b1-4007-9b16-48eab0f49c1b",
    "Name": "sample string 1",
    "Description": "sample string 2",
    "CustomStatuses": true,
    "Fields": [
      {
        "TaskTypeFieldId": "bfd12e3d-986d-4146-a22f-d1d1e7e62bf8",
        "Section": {
          "TaskTypeSectionId": "793578f8-4633-4cf8-838e-7845b6c7ba9b",
          "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": "05c39659-2b28-49d0-bef7-935c6cc617e4",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "25e80189-91b1-416c-bf1b-a274782b49c5",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "9be6ca39-15a7-43a6-b8da-9f55e613f4c1",
          "CreateDate": "2025-01-30T17:08:41.6715276-08:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2025-01-30T17:08:41.6715276-08:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "22533471-e69e-40ac-8ac6-d4f16593ac42",
            "FieldId": "2ab3a9e5-defb-4fc5-b80b-1f9eab47226e",
            "FieldName": "sample string 1",
            "FieldLable": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "22533471-e69e-40ac-8ac6-d4f16593ac42",
            "FieldId": "2ab3a9e5-defb-4fc5-b80b-1f9eab47226e",
            "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": "bfd12e3d-986d-4146-a22f-d1d1e7e62bf8",
        "Section": {
          "TaskTypeSectionId": "793578f8-4633-4cf8-838e-7845b6c7ba9b",
          "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": "05c39659-2b28-49d0-bef7-935c6cc617e4",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "25e80189-91b1-416c-bf1b-a274782b49c5",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "9be6ca39-15a7-43a6-b8da-9f55e613f4c1",
          "CreateDate": "2025-01-30T17:08:41.6715276-08:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2025-01-30T17:08:41.6715276-08:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "22533471-e69e-40ac-8ac6-d4f16593ac42",
            "FieldId": "2ab3a9e5-defb-4fc5-b80b-1f9eab47226e",
            "FieldName": "sample string 1",
            "FieldLable": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "22533471-e69e-40ac-8ac6-d4f16593ac42",
            "FieldId": "2ab3a9e5-defb-4fc5-b80b-1f9eab47226e",
            "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": "8a38e78b-2e5b-4130-beeb-2035d387ce3f",
    "CreateDate": "2025-01-30T17:08:41.6715276-08:00",
    "CreateUser": "sample string 6",
    "LastModifiedDate": "2025-01-30T17:08:41.6715276-08:00",
    "LastModifiedUser": "sample string 7"
  },
  "Associations": [
    {
      "TaskStatusTypeTaskTypeId": "4778573f-b95d-4bbe-af70-6cc6e4b1ecbd",
      "CompanyId": "b0329e1b-b7ca-4f80-a418-a5dacbc01605",
      "TaskStatusTypeId": "e5e01cc5-66f3-4e4e-b61a-c4649eab8a1e",
      "TaskStatusTypeName": "sample string 2",
      "SourceSystemId": "sample string 3",
      "TaskTypeId": "9ac40cec-042a-420d-b91e-79048af51b17",
      "TaskTypeName": "sample string 4",
      "Description": "sample string 5"
    },
    {
      "TaskStatusTypeTaskTypeId": "4778573f-b95d-4bbe-af70-6cc6e4b1ecbd",
      "CompanyId": "b0329e1b-b7ca-4f80-a418-a5dacbc01605",
      "TaskStatusTypeId": "e5e01cc5-66f3-4e4e-b61a-c4649eab8a1e",
      "TaskStatusTypeName": "sample string 2",
      "SourceSystemId": "sample string 3",
      "TaskTypeId": "9ac40cec-042a-420d-b91e-79048af51b17",
      "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": "c8168ddb-0e94-4c42-9e79-0722d8b2ddd7",
    "Name": "sample string 1",
    "Description": "sample string 2",
    "CustomStatuses": true,
    "Fields": [
      {
        "TaskTypeFieldId": "11b5a125-26a5-49e4-91c3-c9509b0c444e",
        "Section": {
          "TaskTypeSectionId": "d14cc16e-98f4-40e2-abd3-f4230f371d35",
          "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": "6246ed4a-13b5-4e57-b598-d8a2b7db6a8f",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "1da19531-65e0-4b61-8805-5e0148d0f3cb",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "f4bbbaa4-b9f4-45c2-a400-54ece8325459",
          "CreateDate": "2025-01-30T17:08:41.6715276-08:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2025-01-30T17:08:41.6715276-08:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "950a4f63-1652-4da4-8db7-bc0b34772993",
            "FieldId": "b4eeeb4b-332a-4b8f-bccb-b37bbab78ab9",
            "FieldName": "sample string 1",
            "FieldLable": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "950a4f63-1652-4da4-8db7-bc0b34772993",
            "FieldId": "b4eeeb4b-332a-4b8f-bccb-b37bbab78ab9",
            "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": "11b5a125-26a5-49e4-91c3-c9509b0c444e",
        "Section": {
          "TaskTypeSectionId": "d14cc16e-98f4-40e2-abd3-f4230f371d35",
          "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": "6246ed4a-13b5-4e57-b598-d8a2b7db6a8f",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "1da19531-65e0-4b61-8805-5e0148d0f3cb",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "f4bbbaa4-b9f4-45c2-a400-54ece8325459",
          "CreateDate": "2025-01-30T17:08:41.6715276-08:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2025-01-30T17:08:41.6715276-08:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "950a4f63-1652-4da4-8db7-bc0b34772993",
            "FieldId": "b4eeeb4b-332a-4b8f-bccb-b37bbab78ab9",
            "FieldName": "sample string 1",
            "FieldLable": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "950a4f63-1652-4da4-8db7-bc0b34772993",
            "FieldId": "b4eeeb4b-332a-4b8f-bccb-b37bbab78ab9",
            "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": "e98f3a98-e4a5-4c06-9302-32638f692572",
    "CreateDate": "2025-01-30T17:08:41.6715276-08:00",
    "CreateUser": "sample string 6",
    "LastModifiedDate": "2025-01-30T17:08:41.6715276-08:00",
    "LastModifiedUser": "sample string 7"
  },
  "Total": 1,
  "Message": "sample string 1"
}