Updating a query parameter

You can edit a Query Paramters.

Parameters in a workspace can be updated via:

  • POST HTTP request to /templates/{TEMPLATE_ID}/params/{PARAM_ID}

Query parameter properties

The the property that can be passed in the request body are the same of parameter creation .

An example of request is

$ curl 'https://templating.rebrandly.com/v1/url/querystring/templates/{TEMPLATE_ID}/params/{PARAM_ID}' \
-X POST \
-H 'apikey: YOUR_API_KEY' \
-H 'workspace: YOUR_WORKSPACE_ID' \
-H 'Content-Type: application/json' \
-d \
'{
	"label": "My Updated Custom Param",
}'

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"
}