KuikCodeDocs
APIReferenceCodes

Update a code

PATCH
/codes/{id}

Rename, refile, retag, archive, or change where the code points. Fields left out stay as they are.

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

curl -X PATCH "https://example.com/codes/string" \  -H "Content-Type: application/json" \  -d '{}'
{  "id": "string",  "shortCode": "string",  "name": "string",  "scanUrl": "string",  "destination": {    "type": "string",    "url": "string",    "pageId": "string",    "summary": "string"  },  "folderId": "string",  "tags": [    "string"  ],  "archived": true,  "hasAccessCode": true,  "previewUrl": "string",  "scans": 0,  "createdAt": "2019-08-24T14:15:22Z",  "updatedAt": "2019-08-24T14:15:22Z"}