POST TaskTypes
Request Information
URI Parameters
None.
Body Parameters
TaskTypeParamsName | Description | Type | Additional information |
---|---|---|---|
Task | TaskType |
None. |
|
Associations | Collection of TaskStatusTypeTaskType |
None. |
Request Formats
application/json, text/json
Sample:
{ "Task": { "TaskTypeId": "026f5005-433d-4ad2-9505-ddc8f1bbdd33", "Name": "sample string 1", "Description": "sample string 2", "CustomStatuses": true, "Fields": [ { "TaskTypeFieldId": "25b6ec26-94cf-4228-9319-a8828d59c37a", "Section": { "TaskTypeSectionId": "3c7e536a-4a8f-41c3-9b1b-eda53db6adb1", "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": "2458d753-dbf4-4eac-a819-b40954228d51", "Name": "sample string 1" }, "Unit": { "UnitId": "951d4abb-e71d-4a0d-ba0b-9c68c6a64dc3", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "adb91500-3720-4866-b060-8d6daffb7df0", "CreateDate": "2025-01-30T17:11:09.2218472-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-01-30T17:11:09.2218472-08:00", "LastModifiedUser": "sample string 6" }, "DisplayOrder": 1, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "ad029144-09d0-4ddf-9e13-9f7d8f09bdbb", "FieldId": "4d452a81-22f0-4c9a-b490-43611ac10148", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "ad029144-09d0-4ddf-9e13-9f7d8f09bdbb", "FieldId": "4d452a81-22f0-4c9a-b490-43611ac10148", "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": "25b6ec26-94cf-4228-9319-a8828d59c37a", "Section": { "TaskTypeSectionId": "3c7e536a-4a8f-41c3-9b1b-eda53db6adb1", "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": "2458d753-dbf4-4eac-a819-b40954228d51", "Name": "sample string 1" }, "Unit": { "UnitId": "951d4abb-e71d-4a0d-ba0b-9c68c6a64dc3", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "adb91500-3720-4866-b060-8d6daffb7df0", "CreateDate": "2025-01-30T17:11:09.2218472-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-01-30T17:11:09.2218472-08:00", "LastModifiedUser": "sample string 6" }, "DisplayOrder": 1, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "ad029144-09d0-4ddf-9e13-9f7d8f09bdbb", "FieldId": "4d452a81-22f0-4c9a-b490-43611ac10148", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "ad029144-09d0-4ddf-9e13-9f7d8f09bdbb", "FieldId": "4d452a81-22f0-4c9a-b490-43611ac10148", "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": "e00735ad-712a-4e82-8ca9-e3e2a8e6a582", "CreateDate": "2025-01-30T17:11:09.2218472-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-01-30T17:11:09.2218472-08:00", "LastModifiedUser": "sample string 7" }, "Associations": [ { "TaskStatusTypeTaskTypeId": "18f24464-dc95-41e4-84d0-4385ca219eb6", "CompanyId": "bda951c6-05d3-4df0-9e9a-ff0e2e78361a", "TaskStatusTypeId": "b79185fb-001f-471f-8ecc-6501151e2a01", "TaskStatusTypeName": "sample string 2", "SourceSystemId": "sample string 3", "TaskTypeId": "d9f1d2dd-9615-4865-8450-c2fc6a9743e6", "TaskTypeName": "sample string 4", "Description": "sample string 5" }, { "TaskStatusTypeTaskTypeId": "18f24464-dc95-41e4-84d0-4385ca219eb6", "CompanyId": "bda951c6-05d3-4df0-9e9a-ff0e2e78361a", "TaskStatusTypeId": "b79185fb-001f-471f-8ecc-6501151e2a01", "TaskStatusTypeName": "sample string 2", "SourceSystemId": "sample string 3", "TaskTypeId": "d9f1d2dd-9615-4865-8450-c2fc6a9743e6", "TaskTypeName": "sample string 4", "Description": "sample string 5" } ] }
Response Information
Resource Description
Name | Description | Type | Additional information |
---|---|---|---|
Data | TaskType |
None. |
|
Total | integer |
None. |
|
Message | string |
None. |
Response Formats
application/json, text/json
Sample:
{ "Data": { "TaskTypeId": "b97f1463-728d-4f4c-b9c9-b9b205c27149", "Name": "sample string 1", "Description": "sample string 2", "CustomStatuses": true, "Fields": [ { "TaskTypeFieldId": "6dd08659-c188-4c20-9061-e6ed1b0092df", "Section": { "TaskTypeSectionId": "46dd2cd3-cbac-48d4-9a1a-718a7f7c8145", "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": "9145f6cb-d48d-4e80-b27e-26eed070013f", "Name": "sample string 1" }, "Unit": { "UnitId": "2adb61e1-b7dd-4d8d-aafe-8ad2086383b5", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "bdac4460-3cba-4173-9915-3278dabbfb7f", "CreateDate": "2025-01-30T17:11:09.2218472-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-01-30T17:11:09.2218472-08:00", "LastModifiedUser": "sample string 6" }, "DisplayOrder": 1, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "c0816077-a112-4a17-a9cf-db77956b8728", "FieldId": "8e6e946e-1513-438f-9dab-88439d2cec5e", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "c0816077-a112-4a17-a9cf-db77956b8728", "FieldId": "8e6e946e-1513-438f-9dab-88439d2cec5e", "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": "6dd08659-c188-4c20-9061-e6ed1b0092df", "Section": { "TaskTypeSectionId": "46dd2cd3-cbac-48d4-9a1a-718a7f7c8145", "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": "9145f6cb-d48d-4e80-b27e-26eed070013f", "Name": "sample string 1" }, "Unit": { "UnitId": "2adb61e1-b7dd-4d8d-aafe-8ad2086383b5", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "bdac4460-3cba-4173-9915-3278dabbfb7f", "CreateDate": "2025-01-30T17:11:09.2218472-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-01-30T17:11:09.2218472-08:00", "LastModifiedUser": "sample string 6" }, "DisplayOrder": 1, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "c0816077-a112-4a17-a9cf-db77956b8728", "FieldId": "8e6e946e-1513-438f-9dab-88439d2cec5e", "FieldName": "sample string 1", "FieldLable": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "c0816077-a112-4a17-a9cf-db77956b8728", "FieldId": "8e6e946e-1513-438f-9dab-88439d2cec5e", "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": "bf0f6319-7025-49a4-a89a-417dad3e56c5", "CreateDate": "2025-01-30T17:11:09.2218472-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-01-30T17:11:09.2218472-08:00", "LastModifiedUser": "sample string 7" }, "Total": 1, "Message": "sample string 1" }