{"action":"created","issue":{"url":"https://api.github.com/repos/WP-API/WP-API/issues/2378","repository_url":"https://api.github.com/repos/WP-API/WP-API","labels_url":"https://api.github.com/repos/WP-API/WP-API/issues/2378/labels{/name}","comments_url":"https://api.github.com/repos/WP-API/WP-API/issues/2378/comments","events_url":"https://api.github.com/repos/WP-API/WP-API/issues/2378/events","html_url":"https://github.com/WP-API/WP-API/issues/2378","id":141389020,"number":2378,"title":"WP Rest API v1","user":{"login":"jamiepickett","id":270736,"avatar_url":"https://avatars.githubusercontent.com/u/270736?v=3","gravatar_id":"","url":"https://api.github.com/users/jamiepickett","html_url":"https://github.com/jamiepickett","followers_url":"https://api.github.com/users/jamiepickett/followers","following_url":"https://api.github.com/users/jamiepickett/following{/other_user}","gists_url":"https://api.github.com/users/jamiepickett/gists{/gist_id}","starred_url":"https://api.github.com/users/jamiepickett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamiepickett/subscriptions","organizations_url":"https://api.github.com/users/jamiepickett/orgs","repos_url":"https://api.github.com/users/jamiepickett/repos","events_url":"https://api.github.com/users/jamiepickett/events{/privacy}","received_events_url":"https://api.github.com/users/jamiepickett/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-03-16T20:11:58Z","updated_at":"2016-03-16T20:56:56Z","closed_at":"2016-03-16T20:14:45Z","body":"I could not find in the documentation examples of adding tags and categories to a post using the api, but it looks like inside of the class-wp-json-taxonomies.php there is a method for adding terms to a post:\r\n\r\n/**\r\n\t * Add term data to post data\r\n\t *\r\n\t * @param array $data Post data\r\n\t * @param array $post Internal post data\r\n\t * @param string $context Post context\r\n\t * @return array Filtered data\r\n\t */\r\n\tpublic function add_term_data( $data, $post, $context ) {\r\n\r\nIs it possible to add tags to a post and if so, what does the rest URL look like for that?\r\n\r\nThanks,\r\nJ"},"comment":{"url":"https://api.github.com/repos/WP-API/WP-API/issues/comments/197546219","html_url":"https://github.com/WP-API/WP-API/issues/2378#issuecomment-197546219","issue_url":"https://api.github.com/repos/WP-API/WP-API/issues/2378","id":197546219,"user":{"login":"jamiepickett","id":270736,"avatar_url":"https://avatars.githubusercontent.com/u/270736?v=3","gravatar_id":"","url":"https://api.github.com/users/jamiepickett","html_url":"https://github.com/jamiepickett","followers_url":"https://api.github.com/users/jamiepickett/followers","following_url":"https://api.github.com/users/jamiepickett/following{/other_user}","gists_url":"https://api.github.com/users/jamiepickett/gists{/gist_id}","starred_url":"https://api.github.com/users/jamiepickett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamiepickett/subscriptions","organizations_url":"https://api.github.com/users/jamiepickett/orgs","repos_url":"https://api.github.com/users/jamiepickett/repos","events_url":"https://api.github.com/users/jamiepickett/events{/privacy}","received_events_url":"https://api.github.com/users/jamiepickett/received_events","type":"User","site_admin":false},"created_at":"2016-03-16T20:56:56Z","updated_at":"2016-03-16T20:56:56Z","body":"This is an example of the data object that I am passing into the API.  All of the values get set for the post except for the terms...  \r\n\r\nvar data = {\r\n  \"type\": \"pnext_recipe\",\r\n  \"title\" : jQuery(\"#title\").val(),\r\n  \"content_raw\" : jQuery(\"#content_raw\").val(),\r\n  \"status\" : \"draft\",\r\n  \"comment_status\" : \"closed\",\r\n  \"excerpt_raw\" : \"its raw\",\r\n  \"terms\" : {\r\n    \"post_tag\" : \"neil,bob\"\r\n  },\r\n  //we create blank values for these fields so we can get their meta id back\r\n  \"post_meta\" : [{\r\n    \"key\":\"pnext_recipe_skill\",\r\n    \"value\" : \"\"\r\n  }]\r\n}"}}