{"action":"reopened","issue":{"url":"https://api.github.com/repos/magento/magento2/issues/2721","labels_url":"https://api.github.com/repos/magento/magento2/issues/2721/labels{/name}","comments_url":"https://api.github.com/repos/magento/magento2/issues/2721/comments","events_url":"https://api.github.com/repos/magento/magento2/issues/2721/events","html_url":"https://github.com/magento/magento2/issues/2721","id":122286135,"number":2721,"title":"REST POST products unable to set stock qty","user":{"login":"jvanderbiest","id":3985995,"avatar_url":"https://avatars.githubusercontent.com/u/3985995?v=3","gravatar_id":"","url":"https://api.github.com/users/jvanderbiest","html_url":"https://github.com/jvanderbiest","followers_url":"https://api.github.com/users/jvanderbiest/followers","following_url":"https://api.github.com/users/jvanderbiest/following{/other_user}","gists_url":"https://api.github.com/users/jvanderbiest/gists{/gist_id}","starred_url":"https://api.github.com/users/jvanderbiest/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jvanderbiest/subscriptions","organizations_url":"https://api.github.com/users/jvanderbiest/orgs","repos_url":"https://api.github.com/users/jvanderbiest/repos","events_url":"https://api.github.com/users/jvanderbiest/events{/privacy}","received_events_url":"https://api.github.com/users/jvanderbiest/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/magento/magento2/labels/forum","name":"forum","color":"5319e7"},{"url":"https://api.github.com/repos/magento/magento2/labels/MX","name":"MX","color":"fad8c7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-12-15T14:39:09Z","updated_at":"2015-12-17T14:15:42Z","closed_at":null,"body":"When creating a new product using REST POST /V1/products\r\n\r\nSending the following JSON:\r\n```json\r\n\"product\": {\r\n    \"id\": 0,\r\n    \"sku\": \"Test-Product-1\",\r\n    \"name\": \"Test Product 1\",\r\n    \"attribute_set_id\": 4,\r\n    \"price\": 5,\r\n    \"status\": 1,\r\n    \"visibility\": 4,\r\n    \"type_id\": \"simple\",\r\n    \"created_at\": null,\r\n    \"updated_at\": null,\r\n    \"weight\": 0,\r\n    \"extension_attributes\": {\r\n      \"bundle_product_options\": null,\r\n      \"downloadable_product_links\": null,\r\n      \"downloadable_product_samples\": null,\r\n      \"stock_item\": {\r\n        \"item_id\": 0,\r\n        \"product_id\": 0,\r\n        \"stock_id\": 0,\r\n        \"qty\": 5,\r\n        \"is_in_stock\": true,\r\n        \"is_qty_decimal\": true,\r\n        \"show_default_notification_message\": false,\r\n        \"use_config_min_qty\": true,\r\n        \"min_qty\": 0,\r\n        \"use_config_min_sale_qty\": 1,\r\n        \"min_sale_qty\": 0,\r\n        \"use_config_max_sale_qty\": true,\r\n        \"max_sale_qty\": 0,\r\n        \"use_config_backorders\": true,\r\n        \"backorders\": 0,\r\n        \"use_config_notify_stock_qty\": false,\r\n        \"notify_stock_qty\": 0,\r\n        \"use_config_qty_increments\": true,\r\n        \"qty_increments\": 1,\r\n        \"use_config_enable_qty_inc\": true,\r\n        \"enable_qty_increments\": true,\r\n        \"use_config_manage_stock\": true,\r\n        \"manage_stock\": true,\r\n        \"low_stock_date\": null,\r\n        \"is_decimal_divided\": true,\r\n        \"stock_status_changed_auto\": 1,\r\n        \"extension_attributes\": null\r\n      },\r\n      \"configurable_product_options\": null,\r\n      \"configurable_product_links\": null\r\n    },\r\n    \"product_links\": [],\r\n    \"options\": null,\r\n    \"media_gallery_entries\": null,\r\n    \"tier_prices\": [],\r\n    \"custom_attributes\": []\r\n  },\r\n  \"save_options\": false\r\n}\r\n```\r\n\r\nThe stock qty is not updated, however, the \"is_in_stock\" field has been taken into account:\r\n![image](https://cloud.githubusercontent.com/assets/3985995/11813413/a92818f4-a341-11e5-8a62-f192f0f18b3f.png)\r\n\r\nWhat can be wrong here?"}}