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": "2747d7e3-3c53-44cf-9198-837c505272e0", "Name": "sample string 1", "Description": "sample string 2", "CustomStatuses": true, "Fields": [ { "TaskTypeFieldId": "e62f3870-947d-41f1-a7a1-1e734f35f034", "Section": { "TaskTypeSectionId": "5a68879a-d3d9-4962-ba2f-43f28bdbf66a", "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": "0fca69e7-07be-4bb7-b52f-aaa92298f3a2", "Name": "sample string 1" }, "Unit": { "UnitId": "2f37e830-7433-4b45-b5d4-eeac6fdaa0a6", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "dd86ddb5-7de6-4fd7-8b00-d0173a6350ac", "CreateDate": "2025-04-30T13:41:04.3462094-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-04-30T13:41:04.3462094-07:00", "LastModifiedUser": "sample string 6" }, "DisplayOrder": 1, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "e9ff9f9b-0d84-4db1-9c73-e146caebc70c", "FieldId": "84e72bf7-72f9-487d-83e0-8bf26d5d2fd8", "FieldName": "sample string 1", "FieldLabel": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "e9ff9f9b-0d84-4db1-9c73-e146caebc70c", "FieldId": "84e72bf7-72f9-487d-83e0-8bf26d5d2fd8", "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": "e62f3870-947d-41f1-a7a1-1e734f35f034", "Section": { "TaskTypeSectionId": "5a68879a-d3d9-4962-ba2f-43f28bdbf66a", "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": "0fca69e7-07be-4bb7-b52f-aaa92298f3a2", "Name": "sample string 1" }, "Unit": { "UnitId": "2f37e830-7433-4b45-b5d4-eeac6fdaa0a6", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "dd86ddb5-7de6-4fd7-8b00-d0173a6350ac", "CreateDate": "2025-04-30T13:41:04.3462094-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-04-30T13:41:04.3462094-07:00", "LastModifiedUser": "sample string 6" }, "DisplayOrder": 1, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "e9ff9f9b-0d84-4db1-9c73-e146caebc70c", "FieldId": "84e72bf7-72f9-487d-83e0-8bf26d5d2fd8", "FieldName": "sample string 1", "FieldLabel": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "e9ff9f9b-0d84-4db1-9c73-e146caebc70c", "FieldId": "84e72bf7-72f9-487d-83e0-8bf26d5d2fd8", "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": "68ec019c-554b-40ec-8b07-1d2a6c0b5224", "CreateDate": "2025-04-30T13:41:04.3462094-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-04-30T13:41:04.3462094-07:00", "LastModifiedUser": "sample string 7" }, "Associations": [ { "TaskStatusTypeTaskTypeId": "de80fa7d-803f-4f2a-8a74-5ef1d5098cf5", "CompanyId": "d1909c29-89f9-422b-afc3-313fbc6ab358", "TaskStatusTypeId": "9980cb62-82e6-46f3-899b-60abd7952e88", "TaskStatusTypeName": "sample string 2", "SourceSystemId": "sample string 3", "TaskTypeId": "a46ca460-3807-4cb1-a060-c4ae18724bf1", "TaskTypeName": "sample string 4", "Description": "sample string 5" }, { "TaskStatusTypeTaskTypeId": "de80fa7d-803f-4f2a-8a74-5ef1d5098cf5", "CompanyId": "d1909c29-89f9-422b-afc3-313fbc6ab358", "TaskStatusTypeId": "9980cb62-82e6-46f3-899b-60abd7952e88", "TaskStatusTypeName": "sample string 2", "SourceSystemId": "sample string 3", "TaskTypeId": "a46ca460-3807-4cb1-a060-c4ae18724bf1", "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": "ec490a60-c6a4-4f4b-ae2f-ae709d452af2", "Name": "sample string 1", "Description": "sample string 2", "CustomStatuses": true, "Fields": [ { "TaskTypeFieldId": "4120b67f-8688-494b-b30d-56d0a9f7b52d", "Section": { "TaskTypeSectionId": "585282ec-01ec-4a13-be6e-7e9b821f2cf9", "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": "44ae3fab-0347-4e96-b6aa-aba6398aa654", "Name": "sample string 1" }, "Unit": { "UnitId": "be9a0a84-0515-4964-b7d8-7d80f3f2b4a2", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "3efc9615-ea69-49f3-8b5b-bdfdca11e564", "CreateDate": "2025-04-30T13:41:04.3619209-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-04-30T13:41:04.3619209-07:00", "LastModifiedUser": "sample string 6" }, "DisplayOrder": 1, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "6d109033-44c7-4ddf-a953-f58c02f6c648", "FieldId": "1984729e-0e21-4544-9714-1c09e0b9befc", "FieldName": "sample string 1", "FieldLabel": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "6d109033-44c7-4ddf-a953-f58c02f6c648", "FieldId": "1984729e-0e21-4544-9714-1c09e0b9befc", "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": "4120b67f-8688-494b-b30d-56d0a9f7b52d", "Section": { "TaskTypeSectionId": "585282ec-01ec-4a13-be6e-7e9b821f2cf9", "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": "44ae3fab-0347-4e96-b6aa-aba6398aa654", "Name": "sample string 1" }, "Unit": { "UnitId": "be9a0a84-0515-4964-b7d8-7d80f3f2b4a2", "Code": "sample string 1", "Description": "sample string 2", "SourceSystemId": "sample string 3", "CompanyId": "3efc9615-ea69-49f3-8b5b-bdfdca11e564", "CreateDate": "2025-04-30T13:41:04.3619209-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-04-30T13:41:04.3619209-07:00", "LastModifiedUser": "sample string 6" }, "DisplayOrder": 1, "MinValue": 1.0, "MaxValue": 1.0, "MinLength": 1, "MaxLength": 1, "HasValidValues": true, "ValidValues": [ { "ValidValueId": "6d109033-44c7-4ddf-a953-f58c02f6c648", "FieldId": "1984729e-0e21-4544-9714-1c09e0b9befc", "FieldName": "sample string 1", "FieldLabel": "sample string 2", "ValueText": "sample string 3", "LabelText": "sample string 4" }, { "ValidValueId": "6d109033-44c7-4ddf-a953-f58c02f6c648", "FieldId": "1984729e-0e21-4544-9714-1c09e0b9befc", "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": "36a49783-fd4c-48a0-88e6-32aa9b40cfd0", "CreateDate": "2025-04-30T13:41:04.3619209-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-04-30T13:41:04.3619209-07:00", "LastModifiedUser": "sample string 7" }, "Total": 1, "Message": "sample string 1" }