Six Apart Developer Center

Developer Center Home » XML-RPC » Movable Type API »

mt.setPostCategories

Posted by Byrne Reese on January 16, 2006

Sets the categories for a post.

Parameters

  • String postid
  • String username
  • String password
  • array categories

Return value

on success, boolean true value; on failure, fault

Notes

The array categories is an array of structs containing String categoryId and boolean isPrimary. Using isPrimary to set the primary category is optional—in the absence of this flag, the first struct in the array will be assigned the primary category for the post.

Sample Request

Sample Response

Perl Code Sample

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)

Six Apart
Makers of weblog software and services for individuals, organizations and businesses.
This website is powered by Movable Type.