SAP Sailing Analytics Webservices API Version 1.0

URL: /api/v1/competitors/{id}/team/image

Description:

Sets the team image


Webservice Type: REST
Input format: binary (not multipart)
Output format: JSON
Mandatory headers: Content-Type: (image-png|image-jpg)
  Content-Length
Mandatory parameters: None
Optional parameters: leaderboardName: The name of a regatta leaderboard to be used for the secret check. The secret check will only succeed if the requested competitor is part of the regatta. No secret check will happen, if the leaderboardName is not given.
secret: In case the given secret is equal to the one stored in the regatta defined by the leaderboardName, the current user does not need to be authenticated or have the required read permission.
Request method: POST
Request example:

curl -H "Content-Type:image/jpeg" --data-binary @{image-path} \
   http://sapsailing.com/sailingserver/api/v1/competitors/{competitor-id}/team/image
 			
Response example:

{
  "teamImageUri" : "http://training.sapsailing.com/team_images/9871d3a2c554b27151cacf1422eec048.jpeg"
}
			
Back to Web Service Overview