{ "version":"2.0", "metadata":{ "apiVersion":"2018-03-22", "endpointPrefix":"personalize-events", "jsonVersion":"1.1", "protocol":"rest-json", "serviceFullName":"Amazon Personalize Events", "serviceId":"Personalize Events", "signatureVersion":"v4", "signingName":"personalize", "uid":"personalize-events-2018-03-22" }, "operations":{ "PutEvents":{ "name":"PutEvents", "http":{ "method":"POST", "requestUri":"/events" }, "input":{"shape":"PutEventsRequest"}, "errors":[ {"shape":"InvalidInputException"} ] } }, "shapes":{ "Date":{"type":"timestamp"}, "ErrorMessage":{"type":"string"}, "Event":{ "type":"structure", "required":[ "eventType", "sentAt" ], "members":{ "eventId":{"shape":"StringType"}, "eventType":{"shape":"StringType"}, "eventValue":{"shape":"FloatType"}, "itemId":{"shape":"ItemId"}, "properties":{ "shape":"EventPropertiesJSON", "jsonvalue":true }, "sentAt":{"shape":"Date"}, "recommendationId":{"shape":"RecommendationId"}, "impression":{"shape":"Impression"} } }, "EventList":{ "type":"list", "member":{"shape":"Event"}, "max":10, "min":1 }, "EventPropertiesJSON":{ "type":"string", "max":1024, "min":1 }, "FloatType":{"type":"float"}, "Impression":{ "type":"list", "member":{"shape":"ItemId"}, "max":25, "min":1 }, "InvalidInputException":{ "type":"structure", "members":{ "message":{"shape":"ErrorMessage"} }, "error":{"httpStatusCode":400}, "exception":true }, "ItemId":{ "type":"string", "max":256, "min":1 }, "PutEventsRequest":{ "type":"structure", "required":[ "trackingId", "sessionId", "eventList" ], "members":{ "trackingId":{"shape":"StringType"}, "userId":{"shape":"UserId"}, "sessionId":{"shape":"StringType"}, "eventList":{"shape":"EventList"} } }, "RecommendationId":{ "type":"string", "max":40, "min":1 }, "StringType":{ "type":"string", "max":256, "min":1 }, "UserId":{ "type":"string", "max":256, "min":1 } } }