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": "047330aa-6a2e-41ab-b934-403b8125a304",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-07-05T19:17:40.8123943+00:00",
"End": "2026-07-05T19:17:40.8123943+00:00",
"Rate": 6.0,
"RateTableId": "6ff9749e-0ffe-444b-94ba-eafa25d07cd4",
"Resources": [
{
"ResourceId": "9048d47d-c47f-4ab4-8341-7a25b39103b3",
"Units": 2.0
},
{
"ResourceId": "9048d47d-c47f-4ab4-8341-7a25b39103b3",
"Units": 2.0
}
]
},
{
"TaskId": "047330aa-6a2e-41ab-b934-403b8125a304",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-07-05T19:17:40.8123943+00:00",
"End": "2026-07-05T19:17:40.8123943+00:00",
"Rate": 6.0,
"RateTableId": "6ff9749e-0ffe-444b-94ba-eafa25d07cd4",
"Resources": [
{
"ResourceId": "9048d47d-c47f-4ab4-8341-7a25b39103b3",
"Units": 2.0
},
{
"ResourceId": "9048d47d-c47f-4ab4-8341-7a25b39103b3",
"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": "c97274b6-d4fc-4422-bcc5-edd4c4c52dde",
"Cost": 2.0,
"Revenue": 3.0
},
{
"TaskId": "c97274b6-d4fc-4422-bcc5-edd4c4c52dde",
"Cost": 2.0,
"Revenue": 3.0
}
]