PATCH
/
link
curl --request PATCH \
  --url https://api.cme.sh/link \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "workspaceId": "<string>",
  "linkId": "<string>",
  "tags": [],
  "deleteLink": false
}'
{
  "status": true,
  "data": {
    "_id": "<string>",
    "workspaceId": "<string>",
    "shortUrl": "<string>",
    "longUrl": "<string>",
    "linkActive": true,
    "tags": [
      "<string>"
    ],
    "totalClicks": 123,
    "destinationUrlMetaData": {
      "author": "<string>",
      "description": "<string>",
      "image": "<string>",
      "logo": "<string>",
      "publisher": "<string>",
      "title": "<string>",
      "url": "<string>",
      "metaTags": "<string>",
      "date": "2023-11-07T05:31:56Z"
    },
    "createdBy": "<string>",
    "modifiedBy": "<string>",
    "createdDate": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
Update tags or delete a link for the authenticated workspace.
workspaceId
string
required

Id of the Workspace

Id of the Link

tags
string[]

Tags to be updated to a link

Delete a link if set to true

Response

200
application/json
Successful response
status
boolean
data
object