KuikCodeDocs

Update a link

PATCH
/links/{id}

Send only the fields to change. The short link keeps working; a new destination is checked like on create.

Authorization

apiKey
AuthorizationBearer <token>

An API key from Settings, Developers: Authorization: Bearer kc_live_...

In: header

Path Parameters

id*string
Length1 <= length

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X PATCH "https://example.com/links/string" \  -H "Content-Type: application/json" \  -d '{}'
{  "id": "string",  "shortId": "string",  "name": "string",  "url": "string",  "shortUrl": "string",  "host": "string",  "slug": "string",  "folderId": "string",  "tags": [    "string"  ],  "note": "string",  "utm": {    "source": "string",    "medium": "string",    "campaign": "string",    "term": "string",    "content": "string",    "ref": "string"  },  "expiresAt": "2019-08-24T14:15:22Z",  "expiredUrl": "string",  "externalId": "string",  "tenantId": "string",  "hasPassword": true,  "state": "ok",  "archived": true,  "clicks": 0,  "createdAt": "2019-08-24T14:15:22Z",  "updatedAt": "2019-08-24T14:15:22Z"}