Delete a preset

Presets can also been deleted.

Parameters in a workspace can be deleted via:

  • a DELETE HTTP request to /templates/{TEMPLATE_ID}/presets/{PRESET_ID}

An example of deletion is:

$ curl 'https://templating.rebrandly.com/v1/url/querystring/templates/{TEMPLATE_ID}/presets/{PRESET_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": "89f1e8ebd4124fe9ad1653a012b6b434",
	"name": "Marketing Campaign",
	"data": {
		"query": {
			"91fa4e1191e6496da03eb6fbf1e82fcb": ["fb", "tw"],
			"93d6105a21594c73bb6b1d753357c1d0": "sms",
			"3918033b676f48d8b429b01cb047bf72": "fb-campaign"
		}
	}
}