@lap v0.3
# Machine-readable API spec. Each @endpoint block is one API call.
@api Amazon Personalize Events
@version 2018-03-22
@auth AWS SigV4
@endpoints 5
@toc action-interactions(1), actions(1), events(1), items(1), users(1)

@group action-interactions
@endpoint POST /action-interactions
@desc Records action interaction event data. An action interaction event is an interaction between a user and an action. For example, a user taking an action, such a enrolling in a membership program or downloading your app.  For more information about recording action interactions, see Recording action interaction events. For more information about actions in an Actions dataset, see Actions dataset.
@required {trackingId: str, actionInteractions: [ActionInteraction]}

@endgroup

@group actions
@endpoint POST /actions
@desc Adds one or more actions to an Actions dataset. For more information see Importing actions individually.
@required {datasetArn: str, actions: [Action]}

@endgroup

@group events
@endpoint POST /events
@desc Records item interaction event data. For more information see Recording item interaction events.
@required {trackingId: str, sessionId: str, eventList: [Event]}
@optional {userId: str}

@endgroup

@group items
@endpoint POST /items
@desc Adds one or more items to an Items dataset. For more information see Importing items individually.
@required {datasetArn: str, items: [Item]}

@endgroup

@group users
@endpoint POST /users
@desc Adds one or more users to a Users dataset. For more information see Importing users individually.
@required {datasetArn: str, users: [User]}

@endgroup

@end
