PATCH https://api.luaprotect.dev/v1/keys/:id

Update script key note or expiration date. Keys past their expiration are permanently deleted.

Query Parameters

Body Parameters

Example Request

curl -X PATCH "https://api.luaprotect.dev/v1/keys/key_10293z" \
  -H "Authorization: Bearer LUAP-YOUR_API_KEY_HERE" \
  -H "Content-Type: application/json" \
  -d '{"note": "Updated note"}'

Example Response

{
  "success": true,
  "key": {
    "id": "key_10293z",
    "status": "active",
    "updatedAt": "2026-08-06T17:30:00Z"
  }
}