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": "fc992ef8-ef77-43c9-b791-70e47ed81ca3",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-05-20T01:02:54.4368994+00:00",
"End": "2026-05-20T01:02:54.4368994+00:00",
"Rate": 6.0,
"RateTableId": "49ce881e-ab88-45ab-a218-a224f9f1adac",
"Resources": [
{
"ResourceId": "50766901-6046-4582-adef-f25ce7366620",
"Units": 2.0
},
{
"ResourceId": "50766901-6046-4582-adef-f25ce7366620",
"Units": 2.0
}
]
},
{
"TaskId": "fc992ef8-ef77-43c9-b791-70e47ed81ca3",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-05-20T01:02:54.4368994+00:00",
"End": "2026-05-20T01:02:54.4368994+00:00",
"Rate": 6.0,
"RateTableId": "49ce881e-ab88-45ab-a218-a224f9f1adac",
"Resources": [
{
"ResourceId": "50766901-6046-4582-adef-f25ce7366620",
"Units": 2.0
},
{
"ResourceId": "50766901-6046-4582-adef-f25ce7366620",
"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": "3f9c0b82-c427-4cf4-b498-bb4eb0fb2843",
"Cost": 2.0,
"Revenue": 3.0
},
{
"TaskId": "3f9c0b82-c427-4cf4-b498-bb4eb0fb2843",
"Cost": 2.0,
"Revenue": 3.0
}
]