API Suunto
-
Good afternoon!
I am using this API https://cloudapi.suunto.com/v2/guides/files to send training sessions and I am getting an error message that I still don’t understand the reason for, since I am attaching the guide.zip file, as per the API description. In addition, I took this file as an example from Suunto’s own documentation. Therefore, I would like to ask for guidance on where the error is?
- I would like to take this opportunity to seek another clarification, also related to this same API: can’t I send the data directly in JSON, in the body, instead of in a zipped file?
This is the error:
{
“error”: {
“code”: “400”,
“description”: “Invalid zip file contents: ‘guide.json’ is missing”
},
“payload”: null,
“metadata”: {
“ts”: “1730309746451”
}
}This is the CURL:
curl --location ‘https://cloudapi.suunto.com/v2/guides/files’
–header ‘Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1a3YiOiIxIiwidXNlcl9uYW1lIjoibWFyY29zbWVuZG9uYWRhc2lsdmEiLCJ1ayI6IkNGUGFETjNMRFMraWR3MkVRZVlmWlpFZS9vbXdw YWNZTlBTRENIOVFWbitQc2hzWEZ4QXF2TlE5Y2EwZmJWekRXa0tMdU1ZSkxvemR3RzNSbmZoczV3PT0iLCJzY29wZSI6WyJ3b3Jrb3V0Il0sImV 4cCI6MTczMDM5MzQxOSwidXNlciI6Im1hcmNvc21lbmRvbmFkYXNpbHZhIiwiYXV0aG9yaXRpZXMiOlsiUEFSVE5FUiJdLCJqdGkiOiJqLW03cXNIeGRIc09WVEUwejlzdnMyeUVJUXMiLCJjbGllbnR faWQiOiI3M2Q4ZjQ3Ny1jZjVhLTQ3NTUtYTE5Mi1jNWVkYWUwOTc4Y2YifQ.n7OVuoL1eNnnZTiQZRBg44cytlcTCzL4AQUgOvRsKxg’
–header ‘Ocp-Apim-Subscription-Key: cac69f5758aa4836950f842272b8b6e1’
–header ‘Content-Type: application/zip’
–data-raw ‘@/ProjSuunto/guide.zip’*** I really need this information urgently ***
Thank you! -
@mdsweb
Are you an accredited developer, isn’t it ?
You should contact Suunto Support -
I’m no developer, but I would remove the bearer token and subscription key from your public post…