POST api/workplan/{Id}/revenue
Calculate tasks cost and revenue (External Use)
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
Id | globally unique identifier |
Required |
Body Parameters
CostRevenueRequestName | Description | Type | Additional information |
---|---|---|---|
Tasks | Collection of CostRevenueTask |
None. |
Request Formats
application/json, text/json
Sample:
{ "Tasks": [ { "TaskId": "a62f8529-0972-4b6f-a864-25b9f98e772a", "Duration": 2.0, "Effort": 3.0, "Start": "2025-04-04T02:43:23.1015649+00:00", "End": "2025-04-04T02:43:23.1015649+00:00", "Resources": [ { "ResourceId": "f1e697d6-bce2-403f-ae52-25ce9bbd771b", "Units": 2.0 }, { "ResourceId": "f1e697d6-bce2-403f-ae52-25ce9bbd771b", "Units": 2.0 } ] }, { "TaskId": "a62f8529-0972-4b6f-a864-25b9f98e772a", "Duration": 2.0, "Effort": 3.0, "Start": "2025-04-04T02:43:23.1015649+00:00", "End": "2025-04-04T02:43:23.1015649+00:00", "Resources": [ { "ResourceId": "f1e697d6-bce2-403f-ae52-25ce9bbd771b", "Units": 2.0 }, { "ResourceId": "f1e697d6-bce2-403f-ae52-25ce9bbd771b", "Units": 2.0 } ] } ] }
Response Information
Resource Description
Collection of CostRevenueResultName | Description | Type | Additional information |
---|---|---|---|
TaskId | globally unique identifier |
None. |
|
Cost | decimal number |
None. |
|
Revenue | decimal number |
None. |
Response Formats
application/json, text/json
Sample:
[ { "TaskId": "757567e2-6ea6-4b3c-9b85-e202aeee1b0d", "Cost": 2.0, "Revenue": 3.0 }, { "TaskId": "757567e2-6ea6-4b3c-9b85-e202aeee1b0d", "Cost": 2.0, "Revenue": 3.0 } ]