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": "e25a9d05-4b7f-49cd-8c34-d60eafb19415",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-01-17T01:10:24.5186134+00:00",
"End": "2026-01-17T01:10:24.5186134+00:00",
"Rate": 6.0,
"RateTableId": "4464f7eb-5272-48da-881c-4030e178c4a1",
"Resources": [
{
"ResourceId": "cc2341d1-91b7-4114-b274-ef1cd208aff0",
"Units": 2.0
},
{
"ResourceId": "cc2341d1-91b7-4114-b274-ef1cd208aff0",
"Units": 2.0
}
]
},
{
"TaskId": "e25a9d05-4b7f-49cd-8c34-d60eafb19415",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-01-17T01:10:24.5186134+00:00",
"End": "2026-01-17T01:10:24.5186134+00:00",
"Rate": 6.0,
"RateTableId": "4464f7eb-5272-48da-881c-4030e178c4a1",
"Resources": [
{
"ResourceId": "cc2341d1-91b7-4114-b274-ef1cd208aff0",
"Units": 2.0
},
{
"ResourceId": "cc2341d1-91b7-4114-b274-ef1cd208aff0",
"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": "73d6d63b-442c-47b9-b568-f3c9ace5024f",
"Cost": 2.0,
"Revenue": 3.0
},
{
"TaskId": "73d6d63b-442c-47b9-b568-f3c9ace5024f",
"Cost": 2.0,
"Revenue": 3.0
}
]