{"action":"created","issue":{"url":"https://api.github.com/repos/certsocietegenerale/FIR/issues/86","repository_url":"https://api.github.com/repos/certsocietegenerale/FIR","labels_url":"https://api.github.com/repos/certsocietegenerale/FIR/issues/86/labels{/name}","comments_url":"https://api.github.com/repos/certsocietegenerale/FIR/issues/86/comments","events_url":"https://api.github.com/repos/certsocietegenerale/FIR/issues/86/events","html_url":"https://github.com/certsocietegenerale/FIR/issues/86","id":143702774,"number":86,"title":"Field IDs for API","user":{"login":"jwilczek","id":8474603,"avatar_url":"https://avatars.githubusercontent.com/u/8474603?v=3","gravatar_id":"","url":"https://api.github.com/users/jwilczek","html_url":"https://github.com/jwilczek","followers_url":"https://api.github.com/users/jwilczek/followers","following_url":"https://api.github.com/users/jwilczek/following{/other_user}","gists_url":"https://api.github.com/users/jwilczek/gists{/gist_id}","starred_url":"https://api.github.com/users/jwilczek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jwilczek/subscriptions","organizations_url":"https://api.github.com/users/jwilczek/orgs","repos_url":"https://api.github.com/users/jwilczek/repos","events_url":"https://api.github.com/users/jwilczek/events{/privacy}","received_events_url":"https://api.github.com/users/jwilczek/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-26T13:05:27Z","updated_at":"2016-03-30T16:11:48Z","closed_at":null,"body":"When using the API, it looks like you need to know the field IDs prior to using the API.  For example:\r\n\r\n\"concerned_business_lines\": [1]?\r\n\r\nIs there a programmatic way to get the IDs ahead of time so I can just use the names in the API like;\r\n\r\n\"concerned_business_lines\": ['Business Line Test']?\r\n\r\nIf not, I saw an example where someone was requesting '/events/new' and then parsing the resultant HTML to pull out the field IDs.  I could also do this, but it appears as if I cannot access '/events/new' with the Auth Token.\r\n\r\nThanks!\r\n\r\nJosh"},"comment":{"url":"https://api.github.com/repos/certsocietegenerale/FIR/issues/comments/203507256","html_url":"https://github.com/certsocietegenerale/FIR/issues/86#issuecomment-203507256","issue_url":"https://api.github.com/repos/certsocietegenerale/FIR/issues/86","id":203507256,"user":{"login":"gaelmuller","id":35897,"avatar_url":"https://avatars.githubusercontent.com/u/35897?v=3","gravatar_id":"","url":"https://api.github.com/users/gaelmuller","html_url":"https://github.com/gaelmuller","followers_url":"https://api.github.com/users/gaelmuller/followers","following_url":"https://api.github.com/users/gaelmuller/following{/other_user}","gists_url":"https://api.github.com/users/gaelmuller/gists{/gist_id}","starred_url":"https://api.github.com/users/gaelmuller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gaelmuller/subscriptions","organizations_url":"https://api.github.com/users/gaelmuller/orgs","repos_url":"https://api.github.com/users/gaelmuller/repos","events_url":"https://api.github.com/users/gaelmuller/events{/privacy}","received_events_url":"https://api.github.com/users/gaelmuller/received_events","type":"User","site_admin":false},"created_at":"2016-03-30T16:11:48Z","updated_at":"2016-03-30T16:11:48Z","body":"A request using HTTP method \"OPTIONS\" should give you all the information you need to create incidents, including the list of business lines:\r\n\r\n`OPTIONS /api/incidents`"}}