DevelopersAPI reference

Remove a path alias

Removes one of the code's path aliases: the old path stops opening the code, and another code on the domain can take it.

The response is { "data": { "id", "deleted": true } }. An alias the code doesn't have is a 404.

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

DELETE
/codes/{id}/aliases/{aliasId}

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
aliasId*string

The path alias's id

Length1 <= length <= 64

Response Body

Removed

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

Was this page helpful?

Last updated on