[wp-trac] [WordPress Trac] #29317: Rest API issue: Not able to assign parent category when creating new one.
WordPress Trac
noreply at wordpress.org
Fri Aug 22 11:59:23 UTC 2014
#29317: Rest API issue: Not able to assign parent category when creating new one.
--------------------------+-----------------------------
Reporter: tsiddhi | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: HTTP API | Version:
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
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,...}}}"
--
Ticket URL: <https://core.trac.wordpress.org/ticket/29317>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list