Remove view
DELETE /spaces/{sid}/views/{view_name}
This method removes an existing view.
This operation requires space_manage_views privilege.
Example cURL requests
Remove existing view
curl -H "X-Auth-Token: $TOKEN" \
-X DELETE https://$HOST/api/v3/oneprovider/spaces/$SPACE_ID/views/$VIEW_NAME
Path parameters
| Parameter | Type & Description |
|---|---|
| sid required | string Space Id in which view exist. |
| view_name required | string Name of the view. |
Request Examples
Shell
oneprovider-rest-cli removeSpaceView sid=$SPACE_ID view_name=$VIEW_NAMEResponses
application/json
204
View removed successfully.
400
Invalid request.
Property
Type & Description
error
string
Identifier representing internal error code.
error_description
string
Detailed error message.
Example
application/json
{
"error": "invalid_token",
"error_description": "Provided token could not be validated."
} 403
Forbidden request.
Property
Type & Description
error
string
Identifier representing internal error code.
error_description
string
Detailed error message.
Example
application/json
{
"error": "invalid_token",
"error_description": "Provided token could not be validated."
} 404
File not found.
Property
Type & Description
error
string
Identifier representing internal error code.
error_description
string
Detailed error message.
Example
application/json
{
"error": "invalid_token",
"error_description": "Provided token could not be validated."
} 500
Internal server error.
Property
Type & Description
error
string
Identifier representing internal error code.
error_description
string
Detailed error message.
Example
application/json
{
"error": "invalid_token",
"error_description": "Provided token could not be validated."
}