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": "87f42e7c-6cda-47cd-ba9f-1350dbdb65f6",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2025-11-27T01:24:27.4907206+00:00",
"End": "2025-11-27T01:24:27.4907206+00:00",
"Rate": 6.0,
"RateTableId": "2a236e71-6df6-4db2-ba7c-bcae07cd437a",
"Resources": [
{
"ResourceId": "648b1381-fe78-4bf5-88bf-029e1b1f4924",
"Units": 2.0
},
{
"ResourceId": "648b1381-fe78-4bf5-88bf-029e1b1f4924",
"Units": 2.0
}
]
},
{
"TaskId": "87f42e7c-6cda-47cd-ba9f-1350dbdb65f6",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2025-11-27T01:24:27.4907206+00:00",
"End": "2025-11-27T01:24:27.4907206+00:00",
"Rate": 6.0,
"RateTableId": "2a236e71-6df6-4db2-ba7c-bcae07cd437a",
"Resources": [
{
"ResourceId": "648b1381-fe78-4bf5-88bf-029e1b1f4924",
"Units": 2.0
},
{
"ResourceId": "648b1381-fe78-4bf5-88bf-029e1b1f4924",
"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": "04165d0d-8da0-4eb0-8808-5ff0b10a1f90",
"Cost": 2.0,
"Revenue": 3.0
},
{
"TaskId": "04165d0d-8da0-4eb0-8808-5ff0b10a1f90",
"Cost": 2.0,
"Revenue": 3.0
}
]