Delete Cash Flow
PUT/ws/rest/service/v1/cashflow/{project_number}
Note:
The owner permissions cannot be deleted via REST or Web Services.Purpose
Delete detail/rollup cash flows
Request Format
All parameters should be URL encoded.
Path Parameter
project_number (Optional): Specify the project/shell number to delete the cash flows of project; otherwise, to delete the company rollup curves.
Both input & output in JSON format in the body
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 Cash Flow 1 and Cash Flow 2, send a request in the following format:
{
"data": {
"names": ["Cash Flow 1","Cash Flow 2"]
}
}
Sample Response
A partial success / failure response is returned to the above request, wherein:
- Cash Flow 1 was deleted successfully.
- Cash Flow 2 could not be deleted as it did not exist, and displays a status code of 1305.
{
"data": [],
"message": [
{
"status": 200,
"message": "success",
"name": "Cash Flow 1"
},
{
"status": 1305,
"message": "Cash Flow do not exist",
"name": "Cash Flow 2"
}
],
"status": 3000
}