{"action":"created","issue":{"url":"https://api.github.com/repos/NREL/api-umbrella/issues/165","labels_url":"https://api.github.com/repos/NREL/api-umbrella/issues/165/labels{/name}","comments_url":"https://api.github.com/repos/NREL/api-umbrella/issues/165/comments","events_url":"https://api.github.com/repos/NREL/api-umbrella/issues/165/events","html_url":"https://github.com/NREL/api-umbrella/issues/165","id":99194513,"number":165,"title":"Document required fields for AdminAPI POST requests","user":{"login":"brylie","id":17307,"avatar_url":"https://avatars.githubusercontent.com/u/17307?v=3","gravatar_id":"","url":"https://api.github.com/users/brylie","html_url":"https://github.com/brylie","followers_url":"https://api.github.com/users/brylie/followers","following_url":"https://api.github.com/users/brylie/following{/other_user}","gists_url":"https://api.github.com/users/brylie/gists{/gist_id}","starred_url":"https://api.github.com/users/brylie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brylie/subscriptions","organizations_url":"https://api.github.com/users/brylie/orgs","repos_url":"https://api.github.com/users/brylie/repos","events_url":"https://api.github.com/users/brylie/events{/privacy}","received_events_url":"https://api.github.com/users/brylie/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-08-05T12:34:24Z","updated_at":"2015-08-12T09:31:38Z","closed_at":null,"body":"While trying to [POST a new API via the Admin API](http://apiumbrella.io/docs/admin-api/#!/api/post_api_umbrella_v1_apis), we are encountering some errors:\r\n\r\n```javascript\r\n{\r\n  \"errors\": {\r\n    \"name\": [\r\n      \"can't be blank\"\r\n    ],\r\n    \"backend_protocol\": [\r\n      \"is not included in the list\"\r\n    ],\r\n    \"frontend_host\": [\r\n      \"can't be blank\",\r\n      \"must be in the format of \\\"example.com\\\"\"\r\n    ],\r\n    \"backend_host\": [\r\n      \"can't be blank\",\r\n      \"must be in the format of \\\"example.com\\\"\"\r\n    ],\r\n    \"balance_algorithm\": [\r\n      \"is not included in the list\"\r\n    ],\r\n    \"base\": [\r\n      \"must have at least one servers\",\r\n      \"must have at least one url_matches\"\r\n    ]\r\n  }\r\n}\r\n```\r\n\r\nBased on the above message, I have refined our request body to the following JSON:\r\n\r\n```javascript\r\n{\r\n  \"api\": {\r\n    \"name\": \"Example API\",\r\n    \"backend_protocol\": \"http\",\r\n    \"frontend_host\": \"frontend.host\",\r\n    \"backend_host\": \"backend.host\"\r\n}\r\n```\r\n\r\nPlease provide us with a working example of a POST body to create an API Backend via the Admin API."},"comment":{"url":"https://api.github.com/repos/NREL/api-umbrella/issues/comments/130236143","html_url":"https://github.com/NREL/api-umbrella/issues/165#issuecomment-130236143","issue_url":"https://api.github.com/repos/NREL/api-umbrella/issues/165","id":130236143,"user":{"login":"brylie","id":17307,"avatar_url":"https://avatars.githubusercontent.com/u/17307?v=3","gravatar_id":"","url":"https://api.github.com/users/brylie","html_url":"https://github.com/brylie","followers_url":"https://api.github.com/users/brylie/followers","following_url":"https://api.github.com/users/brylie/following{/other_user}","gists_url":"https://api.github.com/users/brylie/gists{/gist_id}","starred_url":"https://api.github.com/users/brylie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brylie/subscriptions","organizations_url":"https://api.github.com/users/brylie/orgs","repos_url":"https://api.github.com/users/brylie/repos","events_url":"https://api.github.com/users/brylie/events{/privacy}","received_events_url":"https://api.github.com/users/brylie/received_events","type":"User","site_admin":false},"created_at":"2015-08-12T09:31:38Z","updated_at":"2015-08-12T09:31:38Z","body":"@GUI, please verify that the Admin API field requirements are different from the API Umbrella Add API form. This inconsistency is [causing some difficulty](https://github.com/apinf/api-umbrella-dashboard/issues/346) in our dashboard project."}}