Add a reaction
POST {{baseUrl}}/{{version}}/playernotes/{{playernote_id}}/reaction
Adding a reaction to the Player Notes enable you to capture the players own reaction to the coach's feedback. This will in turn be used by coaches to understand what works with the player and what doesn't when it comes to help that player development.
You should submit only one flag at the time. If you submit all of them and same time, the API will only use one in the following order of priority:
-
Love it
OR -
Like it
OR -
Not sure
OR -
Don't like it
Request Body
[{"name"=>"love_it_flag", "value"=>"0", "datatype"=>"number"}, {"name"=>"like_it_flag", "value"=>"0", "datatype"=>"number"}, {"name"=>"not_sure_flag", "value"=>"1", "datatype"=>"number"}, {"name"=>"dont_like_it_flag", "value"=>"0", "datatype"=>"number"}]
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Authorization | string | A valid JWT token |
RESPONSES
status: OK
{"error":false,"code":200,"message":"Reaction added.","playernote":[{"playernote_id":3,"user_id":8,"playernote_note":"You need to stop talking to the refs! this is not good!","playernote_score":2,"created_by":1,"updated_by":88,"deleted_at":null,"deleted_by":null,"created_at":"2022-02-10T10:30:03.000000Z","updated_at":"2023-10-09T11:03:41.000000Z","indicator_id":4,"playernote_share_with_player":1,"read_at":"2022-03-25 15:28:58","love_it_flag":0,"like_it_flag":0,"not_sure_flag":1,"dont_like_it_flag":0}]}