Attaching a tag
You can attach a Tag object to a Link object.
In order to attach a Tag to a Link, you must first create both the resources and get their unique identifiers. Once you have them, you can perform a
POST API call (without body) to the association endpoint, which is composed as follow:
lid is the Link resource's
id property and
tid is the Tag resource's
Check compatibility first
Double check whether your API key or OAuth token is enabled to use the Tags feature.
For every account, you can check for features and limits with a preliminary API call.
Attaching a Tag to a Link
$ curl 'https://api.rebrandly.com/v1/links/FFfa4cc5b6ee45d6g7897b06ac2d16af/tags/3aehje9d536s46d59ba5bcf49b582ear' \ -X POST \ -H 'apikey: YOUR_API_KEY' \ -H 'Content-Type: application/json' HTTP/1.1 200 OK
Updated about 4 years ago