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": "9545b46a-703f-4505-a2cf-8ec6ff0da946", "Name": "sample string 1", "Description": "sample string 2", "CustomStatuses": true, "Fields": [ { "TaskTypeFieldId": "45a587cd-31d5-4b76-a3a5-794f3a472324", "Section": { "TaskTypeSectionId": "9e62f366-527f-4e74-a18f-756ec641001a", "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": "acf34ba1-a279-43c0-9bd1-39c045d5ef40", "Name": "sample string 1" }, "Unit": { "UnitId": "f07feb74-165b-4963-b376-7970cb166a9b", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "054a6acb-3dea-437d-a525-c2e78240530d", "CreateDate": "2024-11-21T04:34:32.3024064-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-11-21T04:34:32.3024064-08:00", "LastModifiedUser": "sample string 6" }, "DisplayOrder": 1, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "570cc924-deff-4d44-9c25-2ef9ad8079ca", "FieldId": "3621093f-9f1d-4af1-a1d7-c1eb508caa0d", "FieldName": "sample string 1", "FieldLabel": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "570cc924-deff-4d44-9c25-2ef9ad8079ca", "FieldId": "3621093f-9f1d-4af1-a1d7-c1eb508caa0d", "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": "45a587cd-31d5-4b76-a3a5-794f3a472324", "Section": { "TaskTypeSectionId": "9e62f366-527f-4e74-a18f-756ec641001a", "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": "acf34ba1-a279-43c0-9bd1-39c045d5ef40", "Name": "sample string 1" }, "Unit": { "UnitId": "f07feb74-165b-4963-b376-7970cb166a9b", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "054a6acb-3dea-437d-a525-c2e78240530d", "CreateDate": "2024-11-21T04:34:32.3024064-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-11-21T04:34:32.3024064-08:00", "LastModifiedUser": "sample string 6" }, "DisplayOrder": 1, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "570cc924-deff-4d44-9c25-2ef9ad8079ca", "FieldId": "3621093f-9f1d-4af1-a1d7-c1eb508caa0d", "FieldName": "sample string 1", "FieldLabel": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "570cc924-deff-4d44-9c25-2ef9ad8079ca", "FieldId": "3621093f-9f1d-4af1-a1d7-c1eb508caa0d", "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": "2d96702e-38e6-473c-8823-97b74c9840f2", "CreateDate": "2024-11-21T04:34:32.3024064-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-11-21T04:34:32.3024064-08:00", "LastModifiedUser": "sample string 7" }, "Associations": [ { "TaskStatusTypeTaskTypeId": "bbe20c90-c9b5-4ae0-94cf-25dda0cdd6f2", "CompanyId": "2ab8c07c-6d54-47e5-8786-806a9d6eec73", "TaskStatusTypeId": "0d908a2d-392a-40cb-b3dd-83cb696aa2bd", "TaskStatusTypeName": "sample string 2", "SourceSystemId": "sample string 3", "TaskTypeId": "d2643ee8-0dfb-4f98-8489-8f36e323ec21", "TaskTypeName": "sample string 4", "Description": "sample string 5" }, { "TaskStatusTypeTaskTypeId": "bbe20c90-c9b5-4ae0-94cf-25dda0cdd6f2", "CompanyId": "2ab8c07c-6d54-47e5-8786-806a9d6eec73", "TaskStatusTypeId": "0d908a2d-392a-40cb-b3dd-83cb696aa2bd", "TaskStatusTypeName": "sample string 2", "SourceSystemId": "sample string 3", "TaskTypeId": "d2643ee8-0dfb-4f98-8489-8f36e323ec21", "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": "54ccdf19-f073-4b46-b279-9a6465b1d479", "Name": "sample string 1", "Description": "sample string 2", "CustomStatuses": true, "Fields": [ { "TaskTypeFieldId": "60fc91c1-99c4-4f86-a3d4-42e80be171c4", "Section": { "TaskTypeSectionId": "9c58bba4-2a8d-4088-90b4-d057b6f77fe4", "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": "43e8fe2d-d1e4-463d-aa48-b8e5df0b1010", "Name": "sample string 1" }, "Unit": { "UnitId": "e49797a8-e950-4a01-9407-9324e5092325", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "3f269b27-b59c-4abc-8978-38cfe5b0919b", "CreateDate": "2024-11-21T04:34:32.3335884-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-11-21T04:34:32.3335884-08:00", "LastModifiedUser": "sample string 6" }, "DisplayOrder": 1, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "b1115ce1-f510-4d8d-a701-3d914bed2b2e", "FieldId": "96c7de0d-02cd-42c8-8b44-014b406b9e56", "FieldName": "sample string 1", "FieldLabel": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "b1115ce1-f510-4d8d-a701-3d914bed2b2e", "FieldId": "96c7de0d-02cd-42c8-8b44-014b406b9e56", "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": "60fc91c1-99c4-4f86-a3d4-42e80be171c4", "Section": { "TaskTypeSectionId": "9c58bba4-2a8d-4088-90b4-d057b6f77fe4", "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": "43e8fe2d-d1e4-463d-aa48-b8e5df0b1010", "Name": "sample string 1" }, "Unit": { "UnitId": "e49797a8-e950-4a01-9407-9324e5092325", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "3f269b27-b59c-4abc-8978-38cfe5b0919b", "CreateDate": "2024-11-21T04:34:32.3335884-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-11-21T04:34:32.3335884-08:00", "LastModifiedUser": "sample string 6" }, "DisplayOrder": 1, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "b1115ce1-f510-4d8d-a701-3d914bed2b2e", "FieldId": "96c7de0d-02cd-42c8-8b44-014b406b9e56", "FieldName": "sample string 1", "FieldLabel": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "b1115ce1-f510-4d8d-a701-3d914bed2b2e", "FieldId": "96c7de0d-02cd-42c8-8b44-014b406b9e56", "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": "09c96d52-ff7c-4ede-9810-f0bb45bd91b2", "CreateDate": "2024-11-21T04:34:32.3335884-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-11-21T04:34:32.3335884-08:00", "LastModifiedUser": "sample string 7" }, "Total": 1, "Message": "sample string 1" }