Creating a preset
Presets can be created via:
POST
HTTP request to/templates/{TEMPLATE_ID}/presets
Preset properties
The table below shows the property that can be passed in the request body.
Property | Type | Constraints | Description |
---|---|---|---|
name | String | - required - Min 1 chars - Max 64 chars | A human-friendly name to identify the preset |
An example of request is
$ curl 'https://templating.rebrandly.com/v1/url/querystring/templates/{TEMPLATE_ID}/presets' \
-X POST \
-H 'apikey: YOUR_API_KEY' \
-H 'workspace: YOUR_WORKSPACE_ID' \
-H 'Content-Type: application/json' \
-d \
'{
"name": "Facebook Campaign"
}'
A 200
response for this request is
{
"id": "abcde945fdf147cb...",
"name": "Facebook Campaign"
}
Updated 6 months ago