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": "6167cac5-9809-4c61-b278-be8f188dbdd9", "Name": "sample string 1", "Description": "sample string 2", "CustomStatuses": true, "Fields": [ { "TaskTypeFieldId": "cd9c78dd-94ba-430f-b75d-8e8e101b7625", "Section": { "TaskTypeSectionId": "0e92756a-eb02-42c3-b15a-21ab8461ddf4", "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": "733f5281-8eae-4f49-8ae8-7c720c3760fb", "Name": "sample string 1" }, "Unit": { "UnitId": "b2fb4501-e455-46e9-9c55-461458a2cf91", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "08831976-b223-4e5a-9a30-b9971e2f03b2", "CreateDate": "2024-12-08T04:15:12.9174155-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-12-08T04:15:12.9174155-08:00", "LastModifiedUser": "sample string 6" }, "DisplayOrder": 1, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "35424889-cf96-4786-9ed2-e726a79dce9e", "FieldId": "4368caa5-43b1-4554-a980-dc2e1c353e82", "FieldName": "sample string 1", "FieldLabel": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "35424889-cf96-4786-9ed2-e726a79dce9e", "FieldId": "4368caa5-43b1-4554-a980-dc2e1c353e82", "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": "cd9c78dd-94ba-430f-b75d-8e8e101b7625", "Section": { "TaskTypeSectionId": "0e92756a-eb02-42c3-b15a-21ab8461ddf4", "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": "733f5281-8eae-4f49-8ae8-7c720c3760fb", "Name": "sample string 1" }, "Unit": { "UnitId": "b2fb4501-e455-46e9-9c55-461458a2cf91", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "08831976-b223-4e5a-9a30-b9971e2f03b2", "CreateDate": "2024-12-08T04:15:12.9174155-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-12-08T04:15:12.9174155-08:00", "LastModifiedUser": "sample string 6" }, "DisplayOrder": 1, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "35424889-cf96-4786-9ed2-e726a79dce9e", "FieldId": "4368caa5-43b1-4554-a980-dc2e1c353e82", "FieldName": "sample string 1", "FieldLabel": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "35424889-cf96-4786-9ed2-e726a79dce9e", "FieldId": "4368caa5-43b1-4554-a980-dc2e1c353e82", "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": "3e1c3054-8042-4360-ab2b-33b6d3ab3b68", "CreateDate": "2024-12-08T04:15:12.9174155-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-12-08T04:15:12.9174155-08:00", "LastModifiedUser": "sample string 7" }, "Associations": [ { "TaskStatusTypeTaskTypeId": "fccdbe6b-2e6c-4da5-8d1f-48ba7b9c523d", "CompanyId": "24271ba4-1f6c-4c52-9950-1377bf5c2c5f", "TaskStatusTypeId": "e6836295-bb2a-4d7c-9d77-dab7d76ba65f", "TaskStatusTypeName": "sample string 2", "SourceSystemId": "sample string 3", "TaskTypeId": "16e0e321-a35f-4fdd-b0b3-56b68e08db2c", "TaskTypeName": "sample string 4", "Description": "sample string 5" }, { "TaskStatusTypeTaskTypeId": "fccdbe6b-2e6c-4da5-8d1f-48ba7b9c523d", "CompanyId": "24271ba4-1f6c-4c52-9950-1377bf5c2c5f", "TaskStatusTypeId": "e6836295-bb2a-4d7c-9d77-dab7d76ba65f", "TaskStatusTypeName": "sample string 2", "SourceSystemId": "sample string 3", "TaskTypeId": "16e0e321-a35f-4fdd-b0b3-56b68e08db2c", "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": "7019c67a-d6fd-40f8-b9ee-2aec6fe2dfb2", "Name": "sample string 1", "Description": "sample string 2", "CustomStatuses": true, "Fields": [ { "TaskTypeFieldId": "0d27634c-48e2-4b93-80f0-96dc0e21a3c1", "Section": { "TaskTypeSectionId": "2c977217-b74d-459e-a495-8a4048f462b8", "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": "e99c375e-a3f2-4f65-8eeb-9c44330956c2", "Name": "sample string 1" }, "Unit": { "UnitId": "b47fdf1a-9009-4965-9de4-e2b3215cf8a6", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "3933b3b3-eb95-4cf0-9975-015399aa87cd", "CreateDate": "2024-12-08T04:15:12.9331042-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-12-08T04:15:12.9331042-08:00", "LastModifiedUser": "sample string 6" }, "DisplayOrder": 1, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "dc90f88b-3459-4547-8cb0-748b46bc8274", "FieldId": "5d75f993-3525-4640-9cc9-f4ec2fafc0b2", "FieldName": "sample string 1", "FieldLabel": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "dc90f88b-3459-4547-8cb0-748b46bc8274", "FieldId": "5d75f993-3525-4640-9cc9-f4ec2fafc0b2", "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": "0d27634c-48e2-4b93-80f0-96dc0e21a3c1", "Section": { "TaskTypeSectionId": "2c977217-b74d-459e-a495-8a4048f462b8", "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": "e99c375e-a3f2-4f65-8eeb-9c44330956c2", "Name": "sample string 1" }, "Unit": { "UnitId": "b47fdf1a-9009-4965-9de4-e2b3215cf8a6", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "3933b3b3-eb95-4cf0-9975-015399aa87cd", "CreateDate": "2024-12-08T04:15:12.9331042-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-12-08T04:15:12.9331042-08:00", "LastModifiedUser": "sample string 6" }, "DisplayOrder": 1, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "dc90f88b-3459-4547-8cb0-748b46bc8274", "FieldId": "5d75f993-3525-4640-9cc9-f4ec2fafc0b2", "FieldName": "sample string 1", "FieldLabel": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "dc90f88b-3459-4547-8cb0-748b46bc8274", "FieldId": "5d75f993-3525-4640-9cc9-f4ec2fafc0b2", "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": "53707840-74bc-4183-b9f5-fad853c4340d", "CreateDate": "2024-12-08T04:15:12.9331042-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-12-08T04:15:12.9331042-08:00", "LastModifiedUser": "sample string 7" }, "Total": 1, "Message": "sample string 1" }