Skip to main content
PATCH
/
public
/
updatelink
Update a link
curl --request PATCH \
  --url https://api.joylink.io/public/updatelink \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "key": "<string>",
  "new_key": "<string>",
  "description": "<string>",
  "destination": "<string>",
  "imageUrl": "<string>",
  "productTitle": "<string>"
}
'
{
  "key": "<string>",
  "description": "<string>",
  "destination": "<string>",
  "imageUrl": "<string>",
  "productTitle": "<string>",
  "userId": "<string>",
  "linkPrefix": "<string>",
  "createdAt": "<string>"
}

Authorizations

X-API-Key
string
header
required

Body

application/json
key
string
required

The key of the link to update

new_key
string

New key for the link

description
string

Link description

destination
string

Destination URL

imageUrl
string

Image URL

productTitle
string

Product title

Response

Successfully updated link

key
string

Unique identifier for the link

description
string

Description of the link

destination
string

The target URL

imageUrl
string

URL of the product image

productTitle
string

Title of the product

userId
string

ID of the user who created the link

Custom link prefix for the user

createdAt
string

Timestamp of when the link was created