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.
TaskTypeParamsName | Description | Type | Additional information |
---|---|---|---|
Task | TaskType |
None. |
|
Associations | Collection of TaskStatusTypeTaskType |
None. |
Request Formats
application/json, text/json
Sample:
{ "Task": { "TaskTypeId": "59592597-2257-4d44-8162-0b684ac1cc74", "Name": "sample string 1", "Description": "sample string 2", "CustomStatuses": true, "Fields": [ { "TaskTypeFieldId": "fdc85844-b55e-4218-a202-08dcd17f6282", "Section": { "TaskTypeSectionId": "1b8e91f0-19e4-4056-9058-75fe92f90d35", "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": "7d57c632-aa01-47df-8918-d8eb29f57a7e", "Name": "sample string 1" }, "Unit": { "UnitId": "94271205-154e-4317-98f5-4c11901be51f", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "047f9789-2e68-42a2-a75b-b8f46e931e82", "CreateDate": "2024-12-21T19:12:19.0279767-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-12-21T19:12:19.0279767-08:00", "LastModifiedUser": "sample string 6" }, "DisplayOrder": 1, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "7e58774b-901c-4920-9bac-1efbb1db2b2d", "FieldId": "3619f031-f189-480a-9c07-a097d573e6fb", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "7e58774b-901c-4920-9bac-1efbb1db2b2d", "FieldId": "3619f031-f189-480a-9c07-a097d573e6fb", "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": "fdc85844-b55e-4218-a202-08dcd17f6282", "Section": { "TaskTypeSectionId": "1b8e91f0-19e4-4056-9058-75fe92f90d35", "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": "7d57c632-aa01-47df-8918-d8eb29f57a7e", "Name": "sample string 1" }, "Unit": { "UnitId": "94271205-154e-4317-98f5-4c11901be51f", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "047f9789-2e68-42a2-a75b-b8f46e931e82", "CreateDate": "2024-12-21T19:12:19.0279767-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-12-21T19:12:19.0279767-08:00", "LastModifiedUser": "sample string 6" }, "DisplayOrder": 1, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "7e58774b-901c-4920-9bac-1efbb1db2b2d", "FieldId": "3619f031-f189-480a-9c07-a097d573e6fb", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "7e58774b-901c-4920-9bac-1efbb1db2b2d", "FieldId": "3619f031-f189-480a-9c07-a097d573e6fb", "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": "db1a7da4-0aff-474a-936d-291e02cda7a1", "CreateDate": "2024-12-21T19:12:19.0279767-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-12-21T19:12:19.0279767-08:00", "LastModifiedUser": "sample string 7" }, "Associations": [ { "TaskStatusTypeTaskTypeId": "f789be51-d9b6-40d5-a8ce-62043967af40", "CompanyId": "dc4ff9c9-a7ff-48c3-aaf0-1ba82daed796", "TaskStatusTypeId": "b70bc45b-3dbe-4a80-81d7-b5f11d947cae", "TaskStatusTypeName": "sample string 2", "SourceSystemId": "sample string 3", "TaskTypeId": "7f61f9da-9c64-42a8-892b-6f5a30c41cd6", "TaskTypeName": "sample string 4", "Description": "sample string 5" }, { "TaskStatusTypeTaskTypeId": "f789be51-d9b6-40d5-a8ce-62043967af40", "CompanyId": "dc4ff9c9-a7ff-48c3-aaf0-1ba82daed796", "TaskStatusTypeId": "b70bc45b-3dbe-4a80-81d7-b5f11d947cae", "TaskStatusTypeName": "sample string 2", "SourceSystemId": "sample string 3", "TaskTypeId": "7f61f9da-9c64-42a8-892b-6f5a30c41cd6", "TaskTypeName": "sample string 4", "Description": "sample string 5" } ] }
Response Information
Resource Description
On success, the updated task type.
Name | Description | Type | Additional information |
---|---|---|---|
Data | TaskType |
None. |
|
Total | integer |
None. |
|
Message | string |
None. |
Response Formats
application/json, text/json
Sample:
{ "Data": { "TaskTypeId": "13576ff3-5a1a-4d56-ba56-63acf0517294", "Name": "sample string 1", "Description": "sample string 2", "CustomStatuses": true, "Fields": [ { "TaskTypeFieldId": "e2389b67-922a-4cb4-aa31-8015129162eb", "Section": { "TaskTypeSectionId": "9060b697-198f-42b0-9bb2-71b0c4683fff", "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": "840041c6-2c19-4e44-bbba-7c4cf6660025", "Name": "sample string 1" }, "Unit": { "UnitId": "ff08be8e-da92-4928-bf63-cbd3f5526c28", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "95bd4dd6-d4f6-41d6-87bd-b042060dbac1", "CreateDate": "2024-12-21T19:12:19.0279767-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-12-21T19:12:19.0279767-08:00", "LastModifiedUser": "sample string 6" }, "DisplayOrder": 1, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "6e39fa48-8716-4bb4-a12f-0e873d53ba40", "FieldId": "78836b0b-87b6-4f63-b16e-f99664bc9811", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "6e39fa48-8716-4bb4-a12f-0e873d53ba40", "FieldId": "78836b0b-87b6-4f63-b16e-f99664bc9811", "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": "e2389b67-922a-4cb4-aa31-8015129162eb", "Section": { "TaskTypeSectionId": "9060b697-198f-42b0-9bb2-71b0c4683fff", "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": "840041c6-2c19-4e44-bbba-7c4cf6660025", "Name": "sample string 1" }, "Unit": { "UnitId": "ff08be8e-da92-4928-bf63-cbd3f5526c28", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "95bd4dd6-d4f6-41d6-87bd-b042060dbac1", "CreateDate": "2024-12-21T19:12:19.0279767-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-12-21T19:12:19.0279767-08:00", "LastModifiedUser": "sample string 6" }, "DisplayOrder": 1, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "6e39fa48-8716-4bb4-a12f-0e873d53ba40", "FieldId": "78836b0b-87b6-4f63-b16e-f99664bc9811", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "6e39fa48-8716-4bb4-a12f-0e873d53ba40", "FieldId": "78836b0b-87b6-4f63-b16e-f99664bc9811", "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": "0f80ae5f-e433-4c8c-b6d7-0feac696fbe0", "CreateDate": "2024-12-21T19:12:19.0279767-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-12-21T19:12:19.0279767-08:00", "LastModifiedUser": "sample string 7" }, "Total": 1, "Message": "sample string 1" }