PATCH https://api.luaprotect.dev/v1/keys/:id
Update script key note or expiration date. Keys past their expiration are permanently deleted.
Query Parameters
:id(string, required) — Key ID (e.g. key_10293z)
Body Parameters
note(string, optional) — Updated human note.expiresAt(string, optional) — New ISO-8601 expiration time. Expired keys are deleted.
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"
}
}