Update collection
POST {{baseUrl}}/{{version}}/collections/{{collection_id}}
This endpoint enables you to update the collection information by its UID(Unique Identification) collection_id
Request Body
[{"name"=>"name", "value"=>"Colletion name", "datatype"=>"string"}, {"name"=>"description", "value"=>"Desc", "datatype"=>"string"}, {"name"=>"team_id", "value"=>"100", "datatype"=>"number"}, {"name"=>"highlight_id_1", "value"=>"150", "datatype"=>"number"}, {"name"=>"highlight_note_1", "value"=>"note 1", "datatype"=>"string"}, {"name"=>"highlight_id_2", "value"=>"143", "datatype"=>"number"}, {"name"=>"highlight_note_2", "value"=>"note 2", "datatype"=>"string"}, {"name"=>"highlight_id_3", "value"=>"210", "datatype"=>"number"}, {"name"=>"highlight_note_3", "value"=>"Notes 3", "datatype"=>"string"}, {"name"=>"highlight_id_4", "value"=>"", "datatype"=>"null"}, {"name"=>"highlight_note_4", "value"=>"", "datatype"=>"null"}, {"name"=>"highlight_id_5", "value"=>"", "datatype"=>"null"}, {"name"=>"highlight_note_5", "value"=>"", "datatype"=>"null"}]
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Authorization | string | A valid JWT token |
RESPONSES
status: OK
{"error":false,"code":200,"message":"The new collection has been updated successfully","collection":[{"collection_id":2,"team_id":127,"collection_name":"Test 235","collection_description":"Desriptions of Test 23 colleciton","collection_high_ids":"[212,211,210]","collection_pub_code":"QxYwgJyf","created_by":null,"updated_by":838,"deleted_by":null,"deleted_at":null,"created_at":"2022-04-18T20:00:35.000000Z","updated_at":"2022-04-18T23:58:16.000000Z","highlight_id_1":150,"highlight_note_1":"note 1","highlight_id_2":143,"highlight_note_2":"note 2","highlight_id_3":210,"highlight_note_3":"Notes 3","highlight_id_4":null,"highlight_note_4":null,"highlight_id_5":null,"highlight_note_5":null,"team_name":"Atlanteans U17","team_avatar":"https://files.teamsportz.app/teams/127_1646910447.png","high_video_url_1":"/videolibrary/team_127/highlights/game/high_6256e58795e93.mp4","high_canvas_1":null,"high_video_url_2":"/videolibrary/team_127/highlights/game/high_6256bb7907b67.mp4","high_canvas_2":"{\"0\":[{\"tool\":\"pen\",\"steps\":[{\"x\":0.23972602739726026,\"y\":0.5060975609756098},{\"x\":0.2654109589041096,\"y\":0.5121951219512195},{\"x\":0.2842465753424658,\"y\":0.5182926829268293},{\"x\":0.3065068493150685,\"y\":0.5213414634146342},{\"x\":0.3441780821917808,\"y\":0.5213414634146342},{\"x\":0.3698630136986301,\"y\":0.524390243902439},{\"x\":0.4178082191780822,\"y\":0.524390243902439},{\"x\":0.4674657534246575,\"y\":0.5304878048780488},{\"x\":0.4931506849315068,\"y\":0.5335365853658537},{\"x\":0.5136986301369864,\"y\":0.5365853658536586},{\"x\":0.553082191780822,\"y\":0.5396341463414634},{\"x\":0.565068493150685,\"y\":0.5426829268292683},{\"x\":0.5907534246575342,\"y\":0.5426829268292683},{\"x\":0.5993150684931506,\"y\":0.5426829268292683},{\"x\":0.6078767123287672,\"y\":0.5426829268292683},{\"x\":0.6095890410958904,\"y\":0.5426829268292683},{\"x\":0.6095890410958904,\"y\":0.5426829268292683},{\"x\":0.6095890410958904,\"y\":0.5457317073170732},{\"x\":0.6095890410958904,\"y\":0.551829268292683},{\"x\":0.6095890410958904,\"y\":0.5579268292682927},{\"x\":0.6095890410958904,\"y\":0.5792682926829268},{\"x\":0.6095890410958904,\"y\":0.5975609756097561},{\"x\":0.6061643835616438,\"y\":0.6402439024390244},{\"x\":0.6044520547945206,\"y\":0.6646341463414634},{\"x\":0.6027397260273972,\"y\":0.7042682926829268},{\"x\":0.6027397260273972,\"y\":0.7286585365853658},{\"x\":0.6027397260273972,\"y\":0.7713414634146342},{\"x\":0.6027397260273972,\"y\":0.7865853658536586},{\"x\":0.6027397260273972,\"y\":0.7957317073170732},{\"x\":0.6027397260273972,\"y\":0.8079268292682927},{\"x\":0.6027397260273972,\"y\":0.8170731707317073},{\"x\":0.6027397260273972,\"y\":0.8170731707317073},{\"x\":0.6027397260273972,\"y\":0.8170731707317073},{\"x\":0.5976027397260274,\"y\":0.8170731707317073},{\"x\":0.5924657534246576,\"y\":0.8170731707317073},{\"x\":0.5856164383561644,\"y\":0.8170731707317073},{\"x\":0.553082191780822,\"y\":0.8109756097560976},{\"x\":0.4982876712328767,\"y\":0.7987804878048781},{\"x\":0.4554794520547945,\"y\":0.7835365853658537},{\"x\":0.3784246575342466,\"y\":0.7560975609756098},{\"x\":0.3236301369863014,\"y\":0.7378048780487805},{\"x\":0.3047945205479452,\"y\":0.7317073170731707},{\"x\":0.2893835616438356,\"y\":0.7286585365853658},{\"x\":0.2654109589041096,\"y\":0.7164634146341463},{\"x\":0.2551369863013699,\"y\":0.7134146341463414},{\"x\":0.2363013698630137,\"y\":0.7042682926829268},{\"x\":0.22773972602739725,\"y\":0.7012195121951219},{\"x\":0.21575342465753425,\"y\":0.6951219512195121},{\"x\":0.2106164383561644,\"y\":0.6951219512195121},{\"x\":0.20376712328767124,\"y\":0.6920731707317073},{\"x\":0.20205479452054795,\"y\":0.6920731707317073},{\"x\":0.20205479452054795,\"y\":0.6920731707317073},{\"x\":0.20205479452054795,\"y\":0.6920731707317073},{\"x\":0.20205479452054795,\"y\":0.6859756097560976},{\"x\":0.20205479452054795,\"y\":0.6798780487804879},{\"x\":0.20205479452054795,\"y\":0.6707317073170732},{\"x\":0.2054794520547945,\"y\":0.6585365853658537},{\"x\":0.21232876712328766,\"y\":0.6310975609756098},{\"x\":0.21746575342465754,\"y\":0.6189024390243902},{\"x\":0.2243150684931507,\"y\":0.5945121951219512},{\"x\":0.22602739726027396,\"y\":0.5884146341463414},{\"x\":0.22945205479452055,\"y\":0.5701219512195121},{\"x\":0.23116438356164384,\"y\":0.5640243902439024},{\"x\":0.23116438356164384,\"y\":0.5548780487804879},{\"x\":0.23116438356164384,\"y\":0.551829268292683},{\"x\":0.23116438356164384,\"y\":0.5487804878048781},{\"x\":0.23116438356164384,\"y\":0.5457317073170732},{\"x\":0.23116438356164384,\"y\":0.5396341463414634},{\"x\":0.23116438356164384,\"y\":0.5365853658536586},{\"x\":0.22945205479452055,\"y\":0.5335365853658537},{\"x\":0.22945205479452055,\"y\":0.5335365853658537},{\"x\":0.22945205479452055,\"y\":0.5274390243902439},{\"x\":0.22945205479452055,\"y\":0.524390243902439},{\"x\":0.22945205479452055,\"y\":0.5152439024390244},{\"x\":0.22945205479452055,\"y\":0.5121951219512195},{\"x\":0.22945205479452055,\"y\":0.5060975609756098},{\"x\":0.22945205479452055,\"y\":0.5060975609756098},{\"x\":0.22945205479452055,\"y\":0.5030487804878049},{\"x\":0.22945205479452055,\"y\":0.5030487804878049},{\"x\":0.22945205479452055,\"y\":0.5030487804878049},{\"x\":0.22945205479452055,\"y\":0.5030487804878049},{\"x\":0.23116438356164384,\"y\":0.5060975609756098}],\"id\":0.10176024027006814,\"color\":\"#000000\"},{\"steps\":[{\"x\":0.19006849315068494,\"y\":0.6524390243902439},{\"x\":0.20034246575342465,\"y\":0.6524390243902439},{\"x\":0.22602739726027396,\"y\":0.649390243902439},{\"x\":0.2705479452054795,\"y\":0.6402439024390244},{\"x\":0.3904109589041096,\"y\":0.6158536585365854},{\"x\":0.4315068493150685,\"y\":0.6067073170731707},{\"x\":0.5034246575342466,\"y\":0.5853658536585366},{\"x\":0.5205479452054794,\"y\":0.5792682926829268},{\"x\":0.5393835616438356,\"y\":0.5701219512195121},{\"x\":0.5428082191780822,\"y\":0.5670731707317073},{\"x\":0.5445205479452054,\"y\":0.5640243902439024},{\"x\":0.5428082191780822,\"y\":0.5640243902439024},{\"x\":0.541095890410959,\"y\":0.5640243902439024}],\"tool\":\"pen\",\"color\":\"#000000\",\"id\":0.40266180643239413},{\"steps\":[{\"x\":0.2996575342465753,\"y\":0.5548780487804879},{\"x\":0.3321917808219178,\"y\":0.5945121951219512},{\"x\":0.3647260273972603,\"y\":0.6402439024390244},{\"x\":0.4726027397260274,\"y\":0.7408536585365854},{\"x\":0.5136986301369864,\"y\":0.7682926829268293},{\"x\":0.559931506849315,\"y\":0.7957317073170732},{\"x\":0.6078767123287672,\"y\":0.8323170731707317},{\"x\":0.6164383561643836,\"y\":0.8445121951219512},{\"x\":0.6232876712328768,\"y\":0.8597560975609756},{\"x\":0.625,\"y\":0.8628048780487805},{\"x\":0.6232876712328768,\"y\":0.8689024390243902}],\"tool\":\"pen\",\"color\":\"#000000\",\"id\":0.21918180818533628}]}","high_video_url_3":null,"high_canvas_3":null,"high_video_url_4":null,"high_canvas_4":null,"high_video_url_5":null,"high_canvas_5":null}]}