diff --git a/dcache-namespace.html b/dcache-namespace.html
index 27194b3..ca35d7b 100644
--- a/dcache-namespace.html
+++ b/dcache-namespace.html
@@ -159,8 +159,8 @@
if (action == 'set-label') {
body = '{"action": "set-label", "label": "'+ options.label +'"}';
}
- if (action == 'remove-label') {
- body = '{"action": "remove-label", "label": "'+ options.label +'"}';
+ if (action == 'rm-label') {
+ body = '{"action": "rm-label", "label": "'+ options.label +'"}';
}
if (action == 'mkdir') {
body = '{"action": "mkdir", "name": "'+ options.name +'"}';