Links
Edit a link
Edit a link for the authenticated workspace.
PUT
https://api.dub.co
/
links
/
{linkId}
curl --request PUT \
--url https://api.dub.co/links/{linkId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"domain": "<string>",
"key": "<string>",
"prefix": "<string>",
"url": "<string>",
"archived": false,
"expiresAt": "2023-11-07T05:31:56Z",
"password": "<string>",
"proxy": false,
"title": "<string>",
"description": "<string>",
"image": "<string>",
"rewrite": false,
"ios": "<string>",
"android": "<string>",
"geo": {},
"publicStats": false,
"tagId": "<string>",
"tagIds": "<string>",
"comments": "<string>"
}'
{
"id": "<string>",
"domain": "<string>",
"key": "<string>",
"url": "<string>",
"archived": false,
"expiresAt": "<string>",
"password": "<string>",
"proxy": false,
"title": "<string>",
"description": "<string>",
"image": "<string>",
"rewrite": false,
"ios": "<string>",
"android": "<string>",
"geo": {},
"publicStats": false,
"tagId": "<string>",
"tags": [
{
"id": "<string>",
"name": "<string>",
"color": "red"
}
],
"comments": "<string>",
"shortLink": "<string>",
"qrCode": "<string>",
"utm_source": "<string>",
"utm_medium": "<string>",
"utm_campaign": "<string>",
"utm_term": "<string>",
"utm_content": "<string>",
"userId": "<string>",
"workspaceId": "<string>",
"clicks": 0,
"lastClicked": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"projectId": "<string>"
}
Authorizations
Default authentication mechanism
Path Parameters
The id of the link to edit. You can get this via the getLinkInfo
endpoint.
Query Parameters
The ID of the workspace the link belongs to.
Body
application/json
Response
200
application/json
The edited link
The response is of type object
.
Was this page helpful?
curl --request PUT \
--url https://api.dub.co/links/{linkId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"domain": "<string>",
"key": "<string>",
"prefix": "<string>",
"url": "<string>",
"archived": false,
"expiresAt": "2023-11-07T05:31:56Z",
"password": "<string>",
"proxy": false,
"title": "<string>",
"description": "<string>",
"image": "<string>",
"rewrite": false,
"ios": "<string>",
"android": "<string>",
"geo": {},
"publicStats": false,
"tagId": "<string>",
"tagIds": "<string>",
"comments": "<string>"
}'
{
"id": "<string>",
"domain": "<string>",
"key": "<string>",
"url": "<string>",
"archived": false,
"expiresAt": "<string>",
"password": "<string>",
"proxy": false,
"title": "<string>",
"description": "<string>",
"image": "<string>",
"rewrite": false,
"ios": "<string>",
"android": "<string>",
"geo": {},
"publicStats": false,
"tagId": "<string>",
"tags": [
{
"id": "<string>",
"name": "<string>",
"color": "red"
}
],
"comments": "<string>",
"shortLink": "<string>",
"qrCode": "<string>",
"utm_source": "<string>",
"utm_medium": "<string>",
"utm_campaign": "<string>",
"utm_term": "<string>",
"utm_content": "<string>",
"userId": "<string>",
"workspaceId": "<string>",
"clicks": 0,
"lastClicked": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"projectId": "<string>"
}
Assistant
Responses are generated using AI and may contain mistakes.