Delete Cash Flow Curve
DELETE /ws/rest/service/v1/cashflow/curve/{project_number}
Version: 19.7
PUT /ws/rest/service/v1/cashflow/delete/curve/{project_number}
Version: 22.11
Purpose
Delete cashflows curves
Request Format
All parameters should be URL encoded.
Request Parameters
- project_number: Specify the project/shell number.
In input request JSON:
- "name": Specify the cashflow name
- "curves": Specify an array of curve names that need to be deleted.
Response Format
A JSON object is returned in the following format.
{
"data": [],
"message": [],
"status": <REST status code value>
}
A successful response displays a status code 200.
A failed response displays a message with a status code.
Sample Request
To delete two cash flow curves, Spends and Derived 1, send a request in the following format.
{
"data": {
"name":"Cashflow 1"
"curves": ["Spends","Derived 1"]
}
}
Sample Success Response
A successful response is returned in the following format when both the cash flow curves are deleted.
{
"data": [],
"message": [
{
"status": 200,
"message": "success",
"name": "Spends"
},
{
"status": 200,
"message": "success",
"name": "Derived 1"
}
],
"status": 200
}