Rules

Delete one rule

Removes a single allow/block rule by id. The coarse operation — DELETE /v1/rules?confirm=true, which removes EVERY rule — was in this spec and this precise one was not, so a generated client got clearRules and no deleteRule. Returns 404 when the id is a well-formed uuid that belongs to no rule on your account, and 400 when it is not a uuid at all.

delete/v1/rules/{id}

Request

  • Base URL: https://www.layercall.com
  • URL: https://www.layercall.com/v1/rules/{id}
  • Auth: one of:
    • API key in header x-api-key
    • HTTP bearer

Path parameters

idstring uuid required

The rule id, as returned by GET /v1/rules.

Response

The rule was deleted.

deletedboolean
idstring uuid
request_idstring

Example response

{
  "deleted": true,
  "request_id": "req_8f2c1e90"
}

Changes

No recorded changes to this operation across all 1 revision of this API.