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": "d7d0a500-1c72-46c2-8626-1b0625c4ceb6", "Duration": 2.0, "Effort": 3.0, "Start": "2025-07-16T13:00:28.3632008+00:00", "End": "2025-07-16T13:00:28.3632008+00:00", "Resources": [ { "ResourceId": "74c38c54-c4d3-460f-8a1a-b7f5d8b0de96", "Units": 2.0 }, { "ResourceId": "74c38c54-c4d3-460f-8a1a-b7f5d8b0de96", "Units": 2.0 } ] }, { "TaskId": "d7d0a500-1c72-46c2-8626-1b0625c4ceb6", "Duration": 2.0, "Effort": 3.0, "Start": "2025-07-16T13:00:28.3632008+00:00", "End": "2025-07-16T13:00:28.3632008+00:00", "Resources": [ { "ResourceId": "74c38c54-c4d3-460f-8a1a-b7f5d8b0de96", "Units": 2.0 }, { "ResourceId": "74c38c54-c4d3-460f-8a1a-b7f5d8b0de96", "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": "cad1df32-62f8-4406-84ca-3cc1bc19d823", "Cost": 2.0, "Revenue": 3.0 }, { "TaskId": "cad1df32-62f8-4406-84ca-3cc1bc19d823", "Cost": 2.0, "Revenue": 3.0 } ]