Delete a query parameter

Query parameters can also been deleted.

Parameters in a workspace can be deleted via:

  • a DELETE HTTP request to /templates/{TEMPLATE_ID}/params/{PARAM_ID}

An example of deletion is:

$ curl 'https://templating.rebrandly.com/v1/url/querystring/templates/{TEMPLATE_ID}/params/{PARAM_ID}' \ -X DELETE \ -H 'apikey: YOUR_API_KEY' \ -H 'workspace: YOUR_WORKSPACE_ID' \

The deleted item is returned.

A 200 response for this request is

{ "id": "feede945fdf147cb...", "format": "string", "options": [], "label": "My Updated Custom Param", "placeholder": "Insert a value for this custom param"", "key": "mycustomparam" }

Did this page help you?