v1

latestOpenAPI 3.0.32026-07-24311635.6 KB
Links

/v1/links/:id

Update a specific link (don't know the ID? Fetch it using GET /v1/links). Mind that in a Link entity you cannot change the domain and/or the slashtag after creation time. You will need to create another Link.

post/v1/links/{id}

Path parameters

idstring required

Unique identifier of the branded short link you want to update

Headers

workspacestring

Which workspace id to filter links by. No workspace specified will select main workspace.

Request body

destinationstring

The destination URL you want your branded short link to point to. Example: https://google.com

titlestring

A title you assign to the branded short link in order to remember what's behind it.

Response

200

idstring
titlestring
slashtagstring
destinationstring
createdAtstring
updatedAtstring
shortUrlstring

Example response

{
  "id": "fffa4cc5b6ee45d6g7897b06ac2d16af",
  "title": "What is Rebrandly",
  "slashtag": "video",
  "destination": "https://www.youtube.com/watch?v=3VmtibKpmXI",
  "createdAt": "2016-07-13T10:54:12.000Z",
  "updatedAt": "2016-07-13T10:54:12.000Z",
  "shortUrl": "rebrand.ly/video",
  "domain": {
    "id": "8f104cc5b6ee4a4ba7897b06ac2ddcfb",
    "fullName": "rebrand.ly"
  }
}