{"action":"created","issue":{"url":"https://api.github.com/repos/OpenNTF/SocialSDK/issues/1737","labels_url":"https://api.github.com/repos/OpenNTF/SocialSDK/issues/1737/labels{/name}","comments_url":"https://api.github.com/repos/OpenNTF/SocialSDK/issues/1737/comments","events_url":"https://api.github.com/repos/OpenNTF/SocialSDK/issues/1737/events","html_url":"https://github.com/OpenNTF/SocialSDK/issues/1737","id":118332955,"number":1737,"title":"Create Event in Community - ActivityService.createActivity ?","user":{"login":"SiriSch","id":15871130,"avatar_url":"https://avatars.githubusercontent.com/u/15871130?v=3","gravatar_id":"","url":"https://api.github.com/users/SiriSch","html_url":"https://github.com/SiriSch","followers_url":"https://api.github.com/users/SiriSch/followers","following_url":"https://api.github.com/users/SiriSch/following{/other_user}","gists_url":"https://api.github.com/users/SiriSch/gists{/gist_id}","starred_url":"https://api.github.com/users/SiriSch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SiriSch/subscriptions","organizations_url":"https://api.github.com/users/SiriSch/orgs","repos_url":"https://api.github.com/users/SiriSch/repos","events_url":"https://api.github.com/users/SiriSch/events{/privacy}","received_events_url":"https://api.github.com/users/SiriSch/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/OpenNTF/SocialSDK/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-23T07:38:59Z","updated_at":"2015-11-23T15:51:55Z","closed_at":"2015-11-23T15:48:54Z","body":"Hey Paul,\r\n\r\nI am trying to create an event in a community.\r\n\r\n\r\n```\r\ncom.ibm.sbt.services.client.ClientServicesException: Request to url URLCENSORED/activities/service/atom2/activities returned an error response 400:Bad Request HTTP/1.1 400 Bad Request\r\n```\r\n\r\n```java\r\n public static void test() throws ClientServicesException, ParseException {\r\n\r\n    Activity anActivity = new Activity();\r\n    anActivity.setTitle( \"TEST\" );\r\n    anActivity.setCompleted( false );\r\n    anActivity.setContent( \"Interesting\" );\r\n\r\n    Date startDate = new SimpleDateFormat( \"yyyy-MM-dd HH:mm:ss.S\" ).parse( \"2015-11-16 17:00:00.0\" );\r\n    Date endDate = new SimpleDateFormat( \"yyyy-MM-dd HH:mm:ss.S\" ).parse( \"2015-12-31 23:00:00.0\" );\r\n\r\n    anActivity.setDuedate( endDate );\r\n    anActivity.setCommunityUuid( \"72d67a94...\" );\r\n    Variables.anActivityService.createActivity( anActivity );\r\n  }\r\n```\r\n\r\nbut this of course does not work, because I can't find any property to set the start date.\r\n\r\nCould you give me an example how to create an event in a community?\r\n\r\n\r\nI am looking forward to hearing from you.\r\n\r\n\r\nBest regards,\r\n\r\nSirius S."},"comment":{"url":"https://api.github.com/repos/OpenNTF/SocialSDK/issues/comments/158975373","html_url":"https://github.com/OpenNTF/SocialSDK/issues/1737#issuecomment-158975373","issue_url":"https://api.github.com/repos/OpenNTF/SocialSDK/issues/1737","id":158975373,"user":{"login":"prb112","id":3016328,"avatar_url":"https://avatars.githubusercontent.com/u/3016328?v=3","gravatar_id":"","url":"https://api.github.com/users/prb112","html_url":"https://github.com/prb112","followers_url":"https://api.github.com/users/prb112/followers","following_url":"https://api.github.com/users/prb112/following{/other_user}","gists_url":"https://api.github.com/users/prb112/gists{/gist_id}","starred_url":"https://api.github.com/users/prb112/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prb112/subscriptions","organizations_url":"https://api.github.com/users/prb112/orgs","repos_url":"https://api.github.com/users/prb112/repos","events_url":"https://api.github.com/users/prb112/events{/privacy}","received_events_url":"https://api.github.com/users/prb112/received_events","type":"User","site_admin":false},"created_at":"2015-11-23T15:51:55Z","updated_at":"2015-11-23T15:51:55Z","body":"refer to https://github.com/OpenNTF/SocialSDK/issues/1643"}}