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": "a0667db3-a910-447f-80f5-49683b61f22d",
    "Name": "sample string 1",
    "Description": "sample string 2",
    "CustomStatuses": true,
    "Fields": [
      {
        "TaskTypeFieldId": "76f76534-4de2-4f1f-999a-1b90fdb7a64c",
        "Section": {
          "TaskTypeSectionId": "cbc7f35e-635a-4f95-ad3b-7d76289dfe94",
          "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": "ef36b8a1-a06d-4515-b9b5-addbe02592f3",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "4216e9e3-67d0-49a5-b7ea-c5b14b0523ac",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "5f36fe7d-2cd4-4918-8bbc-fc1195e76519",
          "CreateDate": "2025-06-16T11:04:52.894477-07:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2025-06-16T11:04:52.894477-07:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "a30fe861-aa29-4540-b8ae-8d8c78cdc549",
            "FieldId": "4cdd4777-974a-46b4-b7b5-4bfa78f4e3b7",
            "FieldName": "sample string 1",
            "FieldLabel": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "a30fe861-aa29-4540-b8ae-8d8c78cdc549",
            "FieldId": "4cdd4777-974a-46b4-b7b5-4bfa78f4e3b7",
            "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": "76f76534-4de2-4f1f-999a-1b90fdb7a64c",
        "Section": {
          "TaskTypeSectionId": "cbc7f35e-635a-4f95-ad3b-7d76289dfe94",
          "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": "ef36b8a1-a06d-4515-b9b5-addbe02592f3",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "4216e9e3-67d0-49a5-b7ea-c5b14b0523ac",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "5f36fe7d-2cd4-4918-8bbc-fc1195e76519",
          "CreateDate": "2025-06-16T11:04:52.894477-07:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2025-06-16T11:04:52.894477-07:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "a30fe861-aa29-4540-b8ae-8d8c78cdc549",
            "FieldId": "4cdd4777-974a-46b4-b7b5-4bfa78f4e3b7",
            "FieldName": "sample string 1",
            "FieldLabel": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "a30fe861-aa29-4540-b8ae-8d8c78cdc549",
            "FieldId": "4cdd4777-974a-46b4-b7b5-4bfa78f4e3b7",
            "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": "294f8dc2-c6ff-4493-bd9f-0482da8f934f",
    "CreateDate": "2025-06-16T11:04:52.894477-07:00",
    "CreateUser": "sample string 6",
    "LastModifiedDate": "2025-06-16T11:04:52.894477-07:00",
    "LastModifiedUser": "sample string 7"
  },
  "Associations": [
    {
      "TaskStatusTypeTaskTypeId": "c86a020a-646f-4e61-bbff-49237ea7a265",
      "CompanyId": "d2d41b58-db5a-4195-ab3a-a90f737ffb2c",
      "TaskStatusTypeId": "afad189c-5ee0-4f47-b044-828f879cb34c",
      "TaskStatusTypeName": "sample string 2",
      "SourceSystemId": "sample string 3",
      "TaskTypeId": "13080e6e-539f-47a0-a881-3cb25381bea1",
      "TaskTypeName": "sample string 4",
      "Description": "sample string 5"
    },
    {
      "TaskStatusTypeTaskTypeId": "c86a020a-646f-4e61-bbff-49237ea7a265",
      "CompanyId": "d2d41b58-db5a-4195-ab3a-a90f737ffb2c",
      "TaskStatusTypeId": "afad189c-5ee0-4f47-b044-828f879cb34c",
      "TaskStatusTypeName": "sample string 2",
      "SourceSystemId": "sample string 3",
      "TaskTypeId": "13080e6e-539f-47a0-a881-3cb25381bea1",
      "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": "b59f08be-27c2-401c-9574-48435d9d78dd",
    "Name": "sample string 1",
    "Description": "sample string 2",
    "CustomStatuses": true,
    "Fields": [
      {
        "TaskTypeFieldId": "ddfbf0e5-5549-4a04-b9fc-3af5b953d775",
        "Section": {
          "TaskTypeSectionId": "5004ff49-6ff1-4658-8411-aefc2a555a76",
          "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": "a3bb341a-57db-43cb-9c61-d3f6b05ac850",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "774c2855-d3a8-4409-86b6-3b5fa1d58646",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "9133e22e-e027-4aef-8618-70d308764d08",
          "CreateDate": "2025-06-16T11:04:52.9101186-07:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2025-06-16T11:04:52.9101186-07:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "a534cf54-f8c8-4589-9a35-d60ad40fab0c",
            "FieldId": "af4f8cbf-3ba2-4374-b5c2-55bc07a9a744",
            "FieldName": "sample string 1",
            "FieldLabel": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "a534cf54-f8c8-4589-9a35-d60ad40fab0c",
            "FieldId": "af4f8cbf-3ba2-4374-b5c2-55bc07a9a744",
            "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": "ddfbf0e5-5549-4a04-b9fc-3af5b953d775",
        "Section": {
          "TaskTypeSectionId": "5004ff49-6ff1-4658-8411-aefc2a555a76",
          "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": "a3bb341a-57db-43cb-9c61-d3f6b05ac850",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "774c2855-d3a8-4409-86b6-3b5fa1d58646",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "9133e22e-e027-4aef-8618-70d308764d08",
          "CreateDate": "2025-06-16T11:04:52.9101186-07:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2025-06-16T11:04:52.9101186-07:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "a534cf54-f8c8-4589-9a35-d60ad40fab0c",
            "FieldId": "af4f8cbf-3ba2-4374-b5c2-55bc07a9a744",
            "FieldName": "sample string 1",
            "FieldLabel": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "a534cf54-f8c8-4589-9a35-d60ad40fab0c",
            "FieldId": "af4f8cbf-3ba2-4374-b5c2-55bc07a9a744",
            "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": "5b371bd6-c5d6-4394-afeb-056ef213cdd8",
    "CreateDate": "2025-06-16T11:04:52.9101186-07:00",
    "CreateUser": "sample string 6",
    "LastModifiedDate": "2025-06-16T11:04:52.9101186-07:00",
    "LastModifiedUser": "sample string 7"
  },
  "Total": 1,
  "Message": "sample string 1"
}