Opened 12 years ago
Closed 12 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: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | HTTP API | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
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,...}}}"
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
REST API is not a part of WordPress core yet.
This should be reported to WordPress.com: http://en.support.wordpress.com/contact/.