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": "4f07546d-9d22-400d-8829-cfb207a9e155", "Duration": 2.0, "Effort": 3.0, "Start": "2025-09-04T03:09:23.2243646+00:00", "End": "2025-09-04T03:09:23.2243646+00:00", "Resources": [ { "ResourceId": "3ae71f92-9e62-4572-8632-0fc00fc2f89a", "Units": 2.0 }, { "ResourceId": "3ae71f92-9e62-4572-8632-0fc00fc2f89a", "Units": 2.0 } ] }, { "TaskId": "4f07546d-9d22-400d-8829-cfb207a9e155", "Duration": 2.0, "Effort": 3.0, "Start": "2025-09-04T03:09:23.2243646+00:00", "End": "2025-09-04T03:09:23.2243646+00:00", "Resources": [ { "ResourceId": "3ae71f92-9e62-4572-8632-0fc00fc2f89a", "Units": 2.0 }, { "ResourceId": "3ae71f92-9e62-4572-8632-0fc00fc2f89a", "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": "8d7fccc3-58a6-402a-9fc8-5113ab292340", "Cost": 2.0, "Revenue": 3.0 }, { "TaskId": "8d7fccc3-58a6-402a-9fc8-5113ab292340", "Cost": 2.0, "Revenue": 3.0 } ]