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": "2a873df5-ed9b-4fa0-803e-b0b8295bcbb5", "Duration": 2.0, "Effort": 3.0, "Start": "2025-07-08T20:11:10.4021158+00:00", "End": "2025-07-08T20:11:10.4021158+00:00", "Resources": [ { "ResourceId": "b4c0a5b2-8e05-40d7-af9c-9b078960efc8", "Units": 2.0 }, { "ResourceId": "b4c0a5b2-8e05-40d7-af9c-9b078960efc8", "Units": 2.0 } ] }, { "TaskId": "2a873df5-ed9b-4fa0-803e-b0b8295bcbb5", "Duration": 2.0, "Effort": 3.0, "Start": "2025-07-08T20:11:10.4021158+00:00", "End": "2025-07-08T20:11:10.4021158+00:00", "Resources": [ { "ResourceId": "b4c0a5b2-8e05-40d7-af9c-9b078960efc8", "Units": 2.0 }, { "ResourceId": "b4c0a5b2-8e05-40d7-af9c-9b078960efc8", "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": "ac9e382e-883a-4727-a33e-8e3c91d1c469", "Cost": 2.0, "Revenue": 3.0 }, { "TaskId": "ac9e382e-883a-4727-a33e-8e3c91d1c469", "Cost": 2.0, "Revenue": 3.0 } ]