QRdx
HelpGuidesDevelopersReact librarySelf-hosting

Delete a code

Permanently deletes a code and its scan history.

Its short link stops working, and this can't be undone. To pause a code and keep its scans, archive it with PATCH instead.

Scope: codes:write, for API keys and OAuth tokens alike.

DELETE
/codes/{id}

Authorization

headerAuthorizationBearer <qrdx_ followed by 40 letters and digits>

An API key, sent as Authorization: Bearer qrdx_…. Create one in Settings → API keys & apps: it is shown once. A key acts on the workspace it was created in as its creator, with their current role there, and only within its scopes, the same scopes as OAuth (each operation names the one it needs). API keys.

Path Parameters

id*string

The code's id

Length1 <= length <= 64

Response Body

Deleted

application/json
  1. response
data*
Example Request
curl -X DELETE 'https://api.qrdx.dev/v1/codes/cm5code0spring0menu00001'
Example Response
{  "data": {    "id": "cm5code0spring0menu00001",    "deleted": true  }}

Last updated on