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": "563002da-64ff-4d15-8107-9f681ed20e43",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-05-07T07:27:44.9608674+00:00",
"End": "2026-05-07T07:27:44.9608674+00:00",
"Rate": 6.0,
"RateTableId": "1a18f145-58c4-4e7a-b10f-142606fe8691",
"Resources": [
{
"ResourceId": "4bbe2c3f-65d5-49a2-a537-e346fd07348b",
"Units": 2.0
},
{
"ResourceId": "4bbe2c3f-65d5-49a2-a537-e346fd07348b",
"Units": 2.0
}
]
},
{
"TaskId": "563002da-64ff-4d15-8107-9f681ed20e43",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-05-07T07:27:44.9608674+00:00",
"End": "2026-05-07T07:27:44.9608674+00:00",
"Rate": 6.0,
"RateTableId": "1a18f145-58c4-4e7a-b10f-142606fe8691",
"Resources": [
{
"ResourceId": "4bbe2c3f-65d5-49a2-a537-e346fd07348b",
"Units": 2.0
},
{
"ResourceId": "4bbe2c3f-65d5-49a2-a537-e346fd07348b",
"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": "a644f473-ca4f-4dd5-9b74-805394bc5450",
"Cost": 2.0,
"Revenue": 3.0
},
{
"TaskId": "a644f473-ca4f-4dd5-9b74-805394bc5450",
"Cost": 2.0,
"Revenue": 3.0
}
]