Add new license of an athlete:


PUT /api/athlete/{id}/license



Payload needs to be n Json-Format in the format:

"fieldname1": value1,
"fieldname2": value2

JSON fields:

Field Mand. Type Value
year partly Integer (year for digits) Year for anual license
season partly Integer (year for digits) First year of seasonal license (e.g. 2018 for 2018/2019)


Name When? Value
code always 200 if success, 501 unauthorized, > 600 other error
reason unauthorized description of error
accesslevel success / other error 1 for "read only", 2 for "read/write"
errors other error list of errors with code and reason
athlete_id success ID of new athlete
athletelicense_id success ID of new athlete athletelicense_id