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": "7c3911c7-7f93-4bcd-8aab-7ef7ccb0da24",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-10-26T05:57:45.3937207+00:00",
"End": "2026-10-26T05:57:45.3937207+00:00",
"Rate": 6.0,
"RateTableId": "9d5b4934-a44f-4585-9172-e22a9b8cc8af",
"Resources": [
{
"ResourceId": "db4f351b-dff3-4a98-8c42-be61e33f65ec",
"Units": 2.0
},
{
"ResourceId": "db4f351b-dff3-4a98-8c42-be61e33f65ec",
"Units": 2.0
}
]
},
{
"TaskId": "7c3911c7-7f93-4bcd-8aab-7ef7ccb0da24",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-10-26T05:57:45.3937207+00:00",
"End": "2026-10-26T05:57:45.3937207+00:00",
"Rate": 6.0,
"RateTableId": "9d5b4934-a44f-4585-9172-e22a9b8cc8af",
"Resources": [
{
"ResourceId": "db4f351b-dff3-4a98-8c42-be61e33f65ec",
"Units": 2.0
},
{
"ResourceId": "db4f351b-dff3-4a98-8c42-be61e33f65ec",
"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": "d7769495-bc48-48df-a708-9f0fe72f3483",
"Cost": 2.0,
"Revenue": 3.0
},
{
"TaskId": "d7769495-bc48-48df-a708-9f0fe72f3483",
"Cost": 2.0,
"Revenue": 3.0
}
]