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
CostRevenueRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| Tasks | Collection of CostRevenueTask |
None. |
Request Formats
application/json, text/json
Sample:
{
"Tasks": [
{
"TaskId": "29f07775-991e-4ab5-9d8a-47c2a9d72ea0",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-09-24T13:07:20.7207739+00:00",
"End": "2026-09-24T13:07:20.7207739+00:00",
"Rate": 6.0,
"RateTableId": "bd38d9c4-5d0d-499f-b2c9-2a65ed3116a7",
"Resources": [
{
"ResourceId": "7f5d8135-7962-4bd7-9ddd-4b8d7c8dc740",
"Units": 2.0
},
{
"ResourceId": "7f5d8135-7962-4bd7-9ddd-4b8d7c8dc740",
"Units": 2.0
}
]
},
{
"TaskId": "29f07775-991e-4ab5-9d8a-47c2a9d72ea0",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-09-24T13:07:20.7207739+00:00",
"End": "2026-09-24T13:07:20.7207739+00:00",
"Rate": 6.0,
"RateTableId": "bd38d9c4-5d0d-499f-b2c9-2a65ed3116a7",
"Resources": [
{
"ResourceId": "7f5d8135-7962-4bd7-9ddd-4b8d7c8dc740",
"Units": 2.0
},
{
"ResourceId": "7f5d8135-7962-4bd7-9ddd-4b8d7c8dc740",
"Units": 2.0
}
]
}
]
}
Response Information
Resource Description
Collection of CostRevenueResult| Name | 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": "4e43ed07-cae8-49a2-937b-214bc7430451",
"Cost": 2.0,
"Revenue": 3.0
},
{
"TaskId": "4e43ed07-cae8-49a2-937b-214bc7430451",
"Cost": 2.0,
"Revenue": 3.0
}
]