PUT Request for Events - ActoKids/api GitHub Wiki
PUT Event object to DynamoDB
GET an event id to update
curl -v https://si9g90zykc.execute-api.us-west-2.amazonaws.com/prod/events/
Update event curl
curl -X PUT -H "Content-Type: application/json" -d '{ "contact_name": "Alex Clontz", "min_age": 20, "contact_phone": "206-579-6806", "frequency": "Once", "contact_email": "[email protected]", "event_link": "2edusite.com", "approver": "none", "disability_types": ["Cognitive"], "start_date_time": "2019-03-20T18:00:00.000Z", "location_name": "The Flat", "picture_url": "none", "activity_type": "Art", "cost": 0, "event_status": "Pending", "inclusive_event": true, "max_age": 50, "org_name": "North Seattle College", "event_id": "453c5b2d-65ca-56fb-808d-75c371d7eb23", "description": "Sprint 5 is done. I have turned to the dark side and become evil. I have purged all crawler data from Dynamo. Bow before your new master! EDIT: [update message goes here]", "end_date_time": "2019-03-20T20:45:00.000Z", "user_name": "Enshaedn", "location_address": "1280 Harrison St, Seattle, WA 98109", "event_name": "Final Presentation"}' https://si9g90zykc.execute-api.us-west-2.amazonaws.com/prod/events/{event_id}
Important curl notes
-
The event id is passed as the request path paramter
-
Failure responses:
-
Error 400 for an event id that does not adhere to uuid standards
-
Error 500 for failure to connect to database, which includes passing an event_id that does not exist in the DB
-