API Reference
Links
PATCH - Update A Link

Update A Link

PATCH Update one of your shortened links.

Request

Body

NameTypeNotes
titlestringThe title of your link
group_idstringThe link group of your link
back_halfstringThe back half of your link (URI)
original_urlstringThe destination URL
group_idstringThe link group of your link

Example

curl -L -X PATCH 'https://prettyurl.net/api/v1/links/9e968c2c-62d3-4d20-8899-6601721f25c6' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <API_KEY>' \
-d '{
  "title": "string",
  "group_id": "string",
  "back_half": "string",
  "original_url": "string",
  "group_id": "string",
}'

Response

Schema

link

KeyType
idstring
titlestring
domainstring
groupobject
back_halfstring
short_linkstring
original_linkstring
updated_atdatetime
created_atdatetime

Example

{
    "status": "success",
    "message": "API request processed successfully.",
    "data": {
        "link": {
            "id": string,
            "title": string,
            "domain": string,
            "group": {
                "id": string,
                "name": string,
                "created_at": datetime
            },
            "back_half": string,
            "short_link": string,
            "original_link": string,
            "updated_at": datetime,
            "created_at": datetime
        }
    }
}