delete_column
Specification¶
- Description:
-
Deletes the user-defined data column specified by the
name
POST argument. See example. -
URL:
-
URL arguments:
-
None
-
POST arguments (required unless marked optional):
-
slicer_name
: the name of the report. project_name
: the name of the project.token
: the authorization token (see Authentication).-
name
: the name of the user-defined data column to be deleted. -
Output:
-
status
: the status of the request.success
, if the request was processed successfully, or error code, if any error occurred. If the status is notsuccess
, then the response contains thestatus
andreason
fields only. Possible values: success
: the request was processed successfully.bad_request
: invalid request parameters, please see the reason field for more details.timeout
: the request took too long to complete.access_error
: the user doesn't have access to the specified project/slicer, or a wrong token was used.-
internal_error
: the request failed due to an unknown problem. -
reason
: user-friendly description of the occurred error. This field is displayed for failed requests only.
Example¶
Purpose: Delete a certain custom data column (custom_column_2211 in this example). Before testing this method please create a new custom data column by using the save_column method. The value of the name POST argument in this method should be equal to the value of the name parameter in the response of the the save_column method.
Path:
https://uslicer.iponweb.com/API/v2/delete_column
POST Arguments:
{
"slicer_name": "Traffic Demo",
"project_name": "demo",
"token": "<token>",
"name" : "custom_column_2211"
}
Command:
curl -d'{"slicer_name": "Traffic Demo","project_name": "demo","token": "<token>","name":"custom_column_2211"}' "https://uslicer.iponweb.com/API/v2/delete_column"
Response:
{"status": "success"}