Getting presets list

Presets in a workspace can be fetched via:

  • GET HTTP request to /templates/{TEMPLATE_ID}/presets

and example of request is

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

A 200 response for this request is

[
	{
		"id": "89f1e8ebd4124fe9ad1653a012b6b434",
		"name": "Marketing Campaign",
		"data": {
			"query": {
				"91fa4e1191e6496da03eb6fbf1e82fcb": ["fb", "tw"],
				"93d6105a21594c73bb6b1d753357c1d0": "sms",
				"3918033b676f48d8b429b01cb047bf72": "fb-campaign"
			}
		}
	}
]