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": "c65e8968-816d-41d5-97cd-f4b81f2a5bb0", "Duration": 2.0, "Effort": 3.0, "Start": "2024-12-18T20:19:09.0254515+00:00", "End": "2024-12-18T20:19:09.0254515+00:00", "Resources": [ { "ResourceId": "f2b82938-d806-4a9c-909d-49565a6fddac", "Units": 2.0 }, { "ResourceId": "f2b82938-d806-4a9c-909d-49565a6fddac", "Units": 2.0 } ] }, { "TaskId": "c65e8968-816d-41d5-97cd-f4b81f2a5bb0", "Duration": 2.0, "Effort": 3.0, "Start": "2024-12-18T20:19:09.0254515+00:00", "End": "2024-12-18T20:19:09.0254515+00:00", "Resources": [ { "ResourceId": "f2b82938-d806-4a9c-909d-49565a6fddac", "Units": 2.0 }, { "ResourceId": "f2b82938-d806-4a9c-909d-49565a6fddac", "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": "4c059548-6246-4711-8cf8-479c0028a8ad", "Cost": 2.0, "Revenue": 3.0 }, { "TaskId": "4c059548-6246-4711-8cf8-479c0028a8ad", "Cost": 2.0, "Revenue": 3.0 } ]