WordPress.org

Make WordPress Core

Opened 5 years ago

Closed 5 years ago

#29317 closed defect (bug) (invalid)

Rest API issue: Not able to assign parent category when creating new one.

Reported by: tsiddhi Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: HTTP API Keywords:
Focuses: Cc:
PR Number:

Description

Following is the information regarding the API call for creating a category. I am passing an existing "category id" as "parent" but still the parent is being saved as "0" every-time. I also tried sending the category name in "parent" parameter but still the same response.

Web API reference URL : http://developer.wordpress.com/docs/api/1/post/sites/%24site/categories/slug:%24category/

Api call executed in code :

Request Parameter sent : " "name=wordpressCateg1&description=wordpressCateg1%20description&parent=253242504"

Response Text : "{"ID":257746312,"name":"wordpressCateg1","slug":"wordpresscateg1","description":"wordpressCateg1 description","post_count":0,

"parent":0,...}}}"

Change History (1)

#1 @SergeyBiryukov
5 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

REST API is not a part of WordPress core yet.

This should be reported to WordPress.com: http://en.support.wordpress.com/contact/.

Note: See TracTickets for help on using tickets.