Categories‎ > ‎

bluemelon.categories.update

updates category name or change parent category

Authentication:

Yes (see here for details)

Arguments:

(required) long : categoryid - represents the category
(optional) string : name - the new category name
(optional) long : parentcategoryid - the id of the new parent category
(optional) long : coveritemid - the id of the photo to be set as the category cover
(required) string : publickey - the public key of an application
(required) string : token - the access token

Request Example:

http://www.bluemelon.com/api/rest/{api_sing}/
?method=bluemelon.categories.update&categoryid=4&name=newname&publickey={publickey}&token={token}

Response Example:

<rsp status="ok">
<content>
<category id="1" parentid="0" title="newname" url="newname" date="2008-10-14 00:00:00.0 CEST">
</category>
</content>
</rsp>

Error Codes:

4 - "Missing parameter"
5 - "Invalid parameter"
12 - "Application not found"
14 - "Invalid accessToken"
15 - "Category not found"
16 - "Access token timed out.You must relogin."
17 - "Invalid call signature size"
18 - "Invalid call signature"
20 - "Missing api_sign"
30 - "Title length must be between 1 and 50"
600 - "No write permissions"
603 - "Account recently expired or deleted"

Comments