{"action":"created","issue":{"url":"https://api.github.com/repos/WP-API/WP-API/issues/1859","labels_url":"https://api.github.com/repos/WP-API/WP-API/issues/1859/labels{/name}","comments_url":"https://api.github.com/repos/WP-API/WP-API/issues/1859/comments","events_url":"https://api.github.com/repos/WP-API/WP-API/issues/1859/events","html_url":"https://github.com/WP-API/WP-API/issues/1859","id":122025899,"number":1859,"title":"Category not assigned to new post word press rest api","user":{"login":"joseph-kuruvilla","id":5128564,"avatar_url":"https://avatars.githubusercontent.com/u/5128564?v=3","gravatar_id":"","url":"https://api.github.com/users/joseph-kuruvilla","html_url":"https://github.com/joseph-kuruvilla","followers_url":"https://api.github.com/users/joseph-kuruvilla/followers","following_url":"https://api.github.com/users/joseph-kuruvilla/following{/other_user}","gists_url":"https://api.github.com/users/joseph-kuruvilla/gists{/gist_id}","starred_url":"https://api.github.com/users/joseph-kuruvilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joseph-kuruvilla/subscriptions","organizations_url":"https://api.github.com/users/joseph-kuruvilla/orgs","repos_url":"https://api.github.com/users/joseph-kuruvilla/repos","events_url":"https://api.github.com/users/joseph-kuruvilla/events{/privacy}","received_events_url":"https://api.github.com/users/joseph-kuruvilla/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-12-14T11:37:22Z","updated_at":"2015-12-16T12:05:50Z","closed_at":"2015-12-14T14:31:34Z","body":"working with rest api. i can able to create a new post to wp using http://v2.wp-api.org/. problem is i cannot assign a category to newly created post new posts created are all uncategorized . my working example follows\r\n\r\n{\r\n\"title\":\"My New Title\",\r\n\"type\":\"post\",\r\n\"content\":\"this is my new content\",\r\n\"terms\":{\r\n\"category\":[\r\n{\r\n\"name\":\"sports\"\r\n}\r\n]\r\n}\r\nam i completely on the wrong path. can any one show some light on how to assign category to newly created post.thanks in advance"},"comment":{"url":"https://api.github.com/repos/WP-API/WP-API/issues/comments/165086875","html_url":"https://github.com/WP-API/WP-API/issues/1859#issuecomment-165086875","issue_url":"https://api.github.com/repos/WP-API/WP-API/issues/1859","id":165086875,"user":{"login":"joseph-kuruvilla","id":5128564,"avatar_url":"https://avatars.githubusercontent.com/u/5128564?v=3","gravatar_id":"","url":"https://api.github.com/users/joseph-kuruvilla","html_url":"https://github.com/joseph-kuruvilla","followers_url":"https://api.github.com/users/joseph-kuruvilla/followers","following_url":"https://api.github.com/users/joseph-kuruvilla/following{/other_user}","gists_url":"https://api.github.com/users/joseph-kuruvilla/gists{/gist_id}","starred_url":"https://api.github.com/users/joseph-kuruvilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joseph-kuruvilla/subscriptions","organizations_url":"https://api.github.com/users/joseph-kuruvilla/orgs","repos_url":"https://api.github.com/users/joseph-kuruvilla/repos","events_url":"https://api.github.com/users/joseph-kuruvilla/events{/privacy}","received_events_url":"https://api.github.com/users/joseph-kuruvilla/received_events","type":"User","site_admin":false},"created_at":"2015-12-16T12:05:50Z","updated_at":"2015-12-16T12:05:50Z","body":"that doesn't work. ended up on error\r\nArray ( [code] => rest_trash_not_supported [message] => Terms do not support trashing. [data] => Array ( [status] => 501 ) )"}}