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": "7bb10746-2cc7-480a-9728-0838dad6c13e", "Name": "sample string 1", "Description": "sample string 2", "CustomStatuses": true, "Fields": [ { "TaskTypeFieldId": "4f6dc96c-db64-453b-8ff5-aa3fa5179f41", "Section": { "TaskTypeSectionId": "a8a46b58-52a4-442b-b320-9b23930844f4", "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": "bab6aee1-e20e-4ac9-a972-1431e692a1df", "Name": "sample string 1" }, "Unit": { "UnitId": "cfd9b5e0-4515-4451-ba4f-eeba20dab7f9", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "b65b814f-508e-440e-8f0c-5e00b76a076c", "CreateDate": "2025-04-03T15:11:16.9878687-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-04-03T15:11:16.9878687-07:00", "LastModifiedUser": "sample string 6" }, "DisplayOrder": 1, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "fa5bd0cd-1bc9-4c85-9436-3fbd11ae30bd", "FieldId": "6ddffc1b-5d63-4f1b-a347-87b21e0a24ef", "FieldName": "sample string 1", "FieldLabel": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "fa5bd0cd-1bc9-4c85-9436-3fbd11ae30bd", "FieldId": "6ddffc1b-5d63-4f1b-a347-87b21e0a24ef", "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": "4f6dc96c-db64-453b-8ff5-aa3fa5179f41", "Section": { "TaskTypeSectionId": "a8a46b58-52a4-442b-b320-9b23930844f4", "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": "bab6aee1-e20e-4ac9-a972-1431e692a1df", "Name": "sample string 1" }, "Unit": { "UnitId": "cfd9b5e0-4515-4451-ba4f-eeba20dab7f9", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "b65b814f-508e-440e-8f0c-5e00b76a076c", "CreateDate": "2025-04-03T15:11:16.9878687-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-04-03T15:11:16.9878687-07:00", "LastModifiedUser": "sample string 6" }, "DisplayOrder": 1, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "fa5bd0cd-1bc9-4c85-9436-3fbd11ae30bd", "FieldId": "6ddffc1b-5d63-4f1b-a347-87b21e0a24ef", "FieldName": "sample string 1", "FieldLabel": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "fa5bd0cd-1bc9-4c85-9436-3fbd11ae30bd", "FieldId": "6ddffc1b-5d63-4f1b-a347-87b21e0a24ef", "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": "ab6fbc27-0e90-4b18-93e5-516cd88192b6", "CreateDate": "2025-04-03T15:11:16.9878687-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-04-03T15:11:16.9878687-07:00", "LastModifiedUser": "sample string 7" }, "Associations": [ { "TaskStatusTypeTaskTypeId": "f95c71b9-0df8-4e8d-97eb-cc4dc33c8dc7", "CompanyId": "e615d087-31e7-4fd6-889b-a26b43128739", "TaskStatusTypeId": "f49fa12e-131e-4367-988a-d8bc64028d97", "TaskStatusTypeName": "sample string 2", "SourceSystemId": "sample string 3", "TaskTypeId": "94eb7dc5-11b0-4c67-9fe5-0517b8016c21", "TaskTypeName": "sample string 4", "Description": "sample string 5" }, { "TaskStatusTypeTaskTypeId": "f95c71b9-0df8-4e8d-97eb-cc4dc33c8dc7", "CompanyId": "e615d087-31e7-4fd6-889b-a26b43128739", "TaskStatusTypeId": "f49fa12e-131e-4367-988a-d8bc64028d97", "TaskStatusTypeName": "sample string 2", "SourceSystemId": "sample string 3", "TaskTypeId": "94eb7dc5-11b0-4c67-9fe5-0517b8016c21", "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": "26e77fbb-d110-4caf-b19b-c929e3ebb29a", "Name": "sample string 1", "Description": "sample string 2", "CustomStatuses": true, "Fields": [ { "TaskTypeFieldId": "64482ebc-af67-4264-9835-d041473bddca", "Section": { "TaskTypeSectionId": "540a2991-9f1d-4210-92bd-8de29c7ed4a1", "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": "365417b7-e35f-486e-a8cf-1144da35d212", "Name": "sample string 1" }, "Unit": { "UnitId": "abaa6831-8b11-454a-83a1-74b5b071612a", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "0e93c30a-c3ec-4038-a1d0-ae7abe268597", "CreateDate": "2025-04-03T15:11:17.0504118-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-04-03T15:11:17.0504118-07:00", "LastModifiedUser": "sample string 6" }, "DisplayOrder": 1, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "5a86dfe1-d4f8-49bc-97cb-b39087a1b718", "FieldId": "615f7d09-8001-47c8-8098-d46199977099", "FieldName": "sample string 1", "FieldLabel": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "5a86dfe1-d4f8-49bc-97cb-b39087a1b718", "FieldId": "615f7d09-8001-47c8-8098-d46199977099", "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": "64482ebc-af67-4264-9835-d041473bddca", "Section": { "TaskTypeSectionId": "540a2991-9f1d-4210-92bd-8de29c7ed4a1", "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": "365417b7-e35f-486e-a8cf-1144da35d212", "Name": "sample string 1" }, "Unit": { "UnitId": "abaa6831-8b11-454a-83a1-74b5b071612a", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "0e93c30a-c3ec-4038-a1d0-ae7abe268597", "CreateDate": "2025-04-03T15:11:17.0504118-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-04-03T15:11:17.0504118-07:00", "LastModifiedUser": "sample string 6" }, "DisplayOrder": 1, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "5a86dfe1-d4f8-49bc-97cb-b39087a1b718", "FieldId": "615f7d09-8001-47c8-8098-d46199977099", "FieldName": "sample string 1", "FieldLabel": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "5a86dfe1-d4f8-49bc-97cb-b39087a1b718", "FieldId": "615f7d09-8001-47c8-8098-d46199977099", "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": "9fa372c4-0a7a-4502-85eb-8b6624d20ac7", "CreateDate": "2025-04-03T15:11:17.0504118-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-04-03T15:11:17.0504118-07:00", "LastModifiedUser": "sample string 7" }, "Total": 1, "Message": "sample string 1" }