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": "9000327e-85a3-4e51-a994-e5d525c6c924",
    "Name": "sample string 1",
    "Description": "sample string 2",
    "CustomStatuses": true,
    "Fields": [
      {
        "TaskTypeFieldId": "a3d1eaef-12e4-41f1-9eba-ddb74d99d60c",
        "Section": {
          "TaskTypeSectionId": "d2e26110-6e8e-41c5-b128-8c6fe98b6d81",
          "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": "28efd1b3-f420-4e04-8c46-0e7c5478e3f3",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "14ee950e-b9e6-4ad6-8081-132bc4560514",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "bf3b6eb1-d215-47a1-9a09-87c8ddeac67a",
          "CreateDate": "2024-11-21T05:04:13.2017885-08:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2024-11-21T05:04:13.2017885-08:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "4dc5bfc7-98ae-469a-8927-1ce5eb98d40a",
            "FieldId": "e211a997-d137-4157-8791-064b24fc26b0",
            "FieldName": "sample string 1",
            "FieldLable": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "4dc5bfc7-98ae-469a-8927-1ce5eb98d40a",
            "FieldId": "e211a997-d137-4157-8791-064b24fc26b0",
            "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": "a3d1eaef-12e4-41f1-9eba-ddb74d99d60c",
        "Section": {
          "TaskTypeSectionId": "d2e26110-6e8e-41c5-b128-8c6fe98b6d81",
          "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": "28efd1b3-f420-4e04-8c46-0e7c5478e3f3",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "14ee950e-b9e6-4ad6-8081-132bc4560514",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "bf3b6eb1-d215-47a1-9a09-87c8ddeac67a",
          "CreateDate": "2024-11-21T05:04:13.2017885-08:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2024-11-21T05:04:13.2017885-08:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "4dc5bfc7-98ae-469a-8927-1ce5eb98d40a",
            "FieldId": "e211a997-d137-4157-8791-064b24fc26b0",
            "FieldName": "sample string 1",
            "FieldLable": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "4dc5bfc7-98ae-469a-8927-1ce5eb98d40a",
            "FieldId": "e211a997-d137-4157-8791-064b24fc26b0",
            "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": "e85449c0-80ea-4b9c-a4fb-17d4872a74dd",
    "CreateDate": "2024-11-21T05:04:13.2017885-08:00",
    "CreateUser": "sample string 6",
    "LastModifiedDate": "2024-11-21T05:04:13.2017885-08:00",
    "LastModifiedUser": "sample string 7"
  },
  "Associations": [
    {
      "TaskStatusTypeTaskTypeId": "12aabe3c-d0fd-45cf-bdc4-7ae0fae1443a",
      "CompanyId": "980365e7-e60e-4140-829b-f26d4eb1dc8f",
      "TaskStatusTypeId": "8c170baf-574c-460a-88f9-02fcf927c53f",
      "TaskStatusTypeName": "sample string 2",
      "SourceSystemId": "sample string 3",
      "TaskTypeId": "6144523e-097c-4ad3-b5fb-41d0bfb5fd99",
      "TaskTypeName": "sample string 4",
      "Description": "sample string 5"
    },
    {
      "TaskStatusTypeTaskTypeId": "12aabe3c-d0fd-45cf-bdc4-7ae0fae1443a",
      "CompanyId": "980365e7-e60e-4140-829b-f26d4eb1dc8f",
      "TaskStatusTypeId": "8c170baf-574c-460a-88f9-02fcf927c53f",
      "TaskStatusTypeName": "sample string 2",
      "SourceSystemId": "sample string 3",
      "TaskTypeId": "6144523e-097c-4ad3-b5fb-41d0bfb5fd99",
      "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": "e26faf8e-2dcb-4cd3-8109-ba45d0b7b673",
    "Name": "sample string 1",
    "Description": "sample string 2",
    "CustomStatuses": true,
    "Fields": [
      {
        "TaskTypeFieldId": "c144ccac-ecea-4c5e-b394-fc0aec81ded8",
        "Section": {
          "TaskTypeSectionId": "74132521-92b5-4f17-8742-390c3fd20924",
          "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": "43702f21-7851-4b03-8200-62b1656f3654",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "89078015-4a4d-49cb-85e6-40d5f7db0a58",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "02127d71-2798-4bec-be2d-6a588fdad193",
          "CreateDate": "2024-11-21T05:04:13.2017885-08:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2024-11-21T05:04:13.2017885-08:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "00c20f1d-2b53-430e-9c54-34402ca97656",
            "FieldId": "5dda4bba-a681-40cd-89ee-5496e17e7017",
            "FieldName": "sample string 1",
            "FieldLable": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "00c20f1d-2b53-430e-9c54-34402ca97656",
            "FieldId": "5dda4bba-a681-40cd-89ee-5496e17e7017",
            "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": "c144ccac-ecea-4c5e-b394-fc0aec81ded8",
        "Section": {
          "TaskTypeSectionId": "74132521-92b5-4f17-8742-390c3fd20924",
          "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": "43702f21-7851-4b03-8200-62b1656f3654",
          "Name": "sample string 1"
        },
        "Unit": {
          "UnitId": "89078015-4a4d-49cb-85e6-40d5f7db0a58",
          "Code": "sample string 1",
          "Description": "sample string 2",
          "SourceSystemId": "sample string 3",
          "CompanyId": "02127d71-2798-4bec-be2d-6a588fdad193",
          "CreateDate": "2024-11-21T05:04:13.2017885-08:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2024-11-21T05:04:13.2017885-08:00",
          "LastModifiedUser": "sample string 6"
        },
        "DisplayOrder": 1,
        "MinValue": 1.0,
        "MaxValue": 1.0,
        "MinLength": 1,
        "MaxLength": 1,
        "HasValidValues": true,
        "ValidValues": [
          {
            "ValidValueId": "00c20f1d-2b53-430e-9c54-34402ca97656",
            "FieldId": "5dda4bba-a681-40cd-89ee-5496e17e7017",
            "FieldName": "sample string 1",
            "FieldLable": "sample string 2",
            "ValueText": "sample string 3",
            "LabelText": "sample string 4"
          },
          {
            "ValidValueId": "00c20f1d-2b53-430e-9c54-34402ca97656",
            "FieldId": "5dda4bba-a681-40cd-89ee-5496e17e7017",
            "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": "4f81c631-0a91-4e99-afcc-4da260787e4f",
    "CreateDate": "2024-11-21T05:04:13.2017885-08:00",
    "CreateUser": "sample string 6",
    "LastModifiedDate": "2024-11-21T05:04:13.2017885-08:00",
    "LastModifiedUser": "sample string 7"
  },
  "Total": 1,
  "Message": "sample string 1"
}