{"action":"created","issue":{"url":"https://api.github.com/repos/redguava/cliniko-api/issues/215","repository_url":"https://api.github.com/repos/redguava/cliniko-api","labels_url":"https://api.github.com/repos/redguava/cliniko-api/issues/215/labels{/name}","comments_url":"https://api.github.com/repos/redguava/cliniko-api/issues/215/comments","events_url":"https://api.github.com/repos/redguava/cliniko-api/issues/215/events","html_url":"https://github.com/redguava/cliniko-api/issues/215","id":308756568,"number":215,"title":"500 error when attempting to create an individual appointment","user":{"login":"jontycg","id":10652911,"avatar_url":"https://avatars0.githubusercontent.com/u/10652911?v=4","gravatar_id":"","url":"https://api.github.com/users/jontycg","html_url":"https://github.com/jontycg","followers_url":"https://api.github.com/users/jontycg/followers","following_url":"https://api.github.com/users/jontycg/following{/other_user}","gists_url":"https://api.github.com/users/jontycg/gists{/gist_id}","starred_url":"https://api.github.com/users/jontycg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jontycg/subscriptions","organizations_url":"https://api.github.com/users/jontycg/orgs","repos_url":"https://api.github.com/users/jontycg/repos","events_url":"https://api.github.com/users/jontycg/events{/privacy}","received_events_url":"https://api.github.com/users/jontycg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-03-26T22:23:59Z","updated_at":"2018-03-28T23:05:38Z","closed_at":null,"author_association":"NONE","body":"I'm getting a 500 error when trying to create an individual appointment.\r\n\r\nThese are the values I'm POSTing to `https://api.cliniko.com/v1/individual_appointments`:\r\n\r\n    'starts_at': '2018-03-29T06:35:48.964000+13:00'\r\n    'patient_id': 46782179\r\n    'practitioner_id': 93846\r\n    'appointment_type_id': 269198\r\n    'business_id': 59308\r\n\r\nAny help would be much appreciated. "},"comment":{"url":"https://api.github.com/repos/redguava/cliniko-api/issues/comments/377066820","html_url":"https://github.com/redguava/cliniko-api/issues/215#issuecomment-377066820","issue_url":"https://api.github.com/repos/redguava/cliniko-api/issues/215","id":377066820,"user":{"login":"Liam-Tait","id":14815230,"avatar_url":"https://avatars1.githubusercontent.com/u/14815230?v=4","gravatar_id":"","url":"https://api.github.com/users/Liam-Tait","html_url":"https://github.com/Liam-Tait","followers_url":"https://api.github.com/users/Liam-Tait/followers","following_url":"https://api.github.com/users/Liam-Tait/following{/other_user}","gists_url":"https://api.github.com/users/Liam-Tait/gists{/gist_id}","starred_url":"https://api.github.com/users/Liam-Tait/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Liam-Tait/subscriptions","organizations_url":"https://api.github.com/users/Liam-Tait/orgs","repos_url":"https://api.github.com/users/Liam-Tait/repos","events_url":"https://api.github.com/users/Liam-Tait/events{/privacy}","received_events_url":"https://api.github.com/users/Liam-Tait/received_events","type":"User","site_admin":false},"created_at":"2018-03-28T23:05:38Z","updated_at":"2018-03-28T23:05:38Z","author_association":"NONE","body":"The timestamp seems to accept that format @hagen.\r\n\r\nIt looks a 500 occurs when a patient_id does not exist. I haven't tested for practitioner_id, appointment_type_id or business_id not existing\r\n\r\nA 404 or a helpful error message e.g ('patient does not exist') would be good here.\r\n"}}
{"actor":{"display_login":"Liam-Tait"}}