{"action":"opened","issue":{"url":"https://api.github.com/repos/scaleway/api.scaleway.com/issues/39","repository_url":"https://api.github.com/repos/scaleway/api.scaleway.com","labels_url":"https://api.github.com/repos/scaleway/api.scaleway.com/issues/39/labels{/name}","comments_url":"https://api.github.com/repos/scaleway/api.scaleway.com/issues/39/comments","events_url":"https://api.github.com/repos/scaleway/api.scaleway.com/issues/39/events","html_url":"https://github.com/scaleway/api.scaleway.com/issues/39","id":194027859,"number":39,"title":"Additional volume while creating an instance","user":{"login":"gunph1ld","id":17044561,"avatar_url":"https://avatars.githubusercontent.com/u/17044561?v=3","gravatar_id":"","url":"https://api.github.com/users/gunph1ld","html_url":"https://github.com/gunph1ld","followers_url":"https://api.github.com/users/gunph1ld/followers","following_url":"https://api.github.com/users/gunph1ld/following{/other_user}","gists_url":"https://api.github.com/users/gunph1ld/gists{/gist_id}","starred_url":"https://api.github.com/users/gunph1ld/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gunph1ld/subscriptions","organizations_url":"https://api.github.com/users/gunph1ld/orgs","repos_url":"https://api.github.com/users/gunph1ld/repos","events_url":"https://api.github.com/users/gunph1ld/events{/privacy}","received_events_url":"https://api.github.com/users/gunph1ld/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-07T11:42:57Z","updated_at":"2016-12-07T11:42:57Z","closed_at":null,"body":"According to the [documentation](https://developer.scaleway.com/#servers-servers-post) I can create a volume while creating an instance.\r\nbut seems, `volumes` does not work:\r\nI post this request:\r\n```\r\n{\r\n  \"organization\": \"{{ organization }}\",\r\n  \"bootscript\": \"{{ bootscript }}\",\r\n  \"name\": \"{{ item.0 }}\",\r\n  \"image\": \"7069f3d0-23e3-4664-8f6b-1a17ed478dff\",\r\n  \"commercial_type\": \"C2S\",\r\n  \"public_ip\": \"{{ item.1.id }}\",\r\n  \"tags\": [\r\n    \"jenkins\"\r\n  ],\r\n  \"volumes\": {\r\n      1: {\r\n        \"name\": \"test_volume\",\r\n        \"organization\": \"{{ organization }}\",\r\n        \"size\": \"50\",\r\n        \"volume_type\": \"l_sdd\"\r\n      }\r\n    },\r\n  \"enable_ipv6\": false\r\n}\r\n```\r\n\r\nand get this error:\r\n\r\n```\r\n\"json\": {\r\n    \"fields\": {\r\n        \"volumes.1.id\": [\r\n            \"required key not provided\"\r\n        ], \r\n        \"volumes.1.organization\": [\r\n            \"extra keys not allowed\"\r\n        ], \r\n        \"volumes.1.size\": [\r\n            \"extra keys not allowed\"\r\n        ], \r\n        \"volumes.1.volume_type\": [\r\n            \"extra keys not allowed\"\r\n        ]\r\n    }, \r\n    \"message\": \"Validation Error\", \r\n    \"type\": \"invalid_request_error\"\r\n} \r\n```\r\n\r\nSeems, the documentation is wrong.\r\nCould you provide an example and repair docs?\r\n\r\nThanks\r\n"}}
{"actor":{"display_login":"gunph1ld"}}