aboutsummaryrefslogtreecommitdiffstats
path: root/ws.php
diff options
context:
space:
mode:
Diffstat (limited to 'ws.php')
-rw-r--r--ws.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/ws.php b/ws.php
index ff2b2b805..fea6c1c90 100644
--- a/ws.php
+++ b/ws.php
@@ -270,6 +270,18 @@ function ws_addDefaultMethods( $arr )
'POST method only. Admin only
<br><b>categories</b> is a string list "category_id[,rank];category_id[,rank]" The rank is optional and is equivalent to "auto" if not given.'
);
+
+ $service->addMethod(
+ 'pwg.categories.setInfo',
+ 'ws_categories_setInfo',
+ array(
+ 'category_id' => array(),
+
+ 'name' => array('default' => null),
+ 'comment' => array('default' => null),
+ ),
+ 'POST method only.'
+ );
}
add_event_handler('ws_add_methods', 'ws_addDefaultMethods');