Suunto app Forum Suunto Community Forum
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    API Suunto

    Scheduled Pinned Locked Moved SuuntoPlus™ Sports Apps
    3 Posts 3 Posters 420 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M Offline
      mdsweb
      last edited by

      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!

      sartoricS 1 Reply Last reply Reply Quote 0
      • sartoricS Offline
        sartoric Moderator @mdsweb
        last edited by sartoric

        @mdsweb
        Are you an accredited developer, isn’t it ?
        You should contact Suunto Support

        SVTS - 2.40.38
        SSSWHR BARO Amber - 2.8.32
        Samsung A5 2016 - Android 7.0
        Samsung A33 2022 - Android 14 - One UI 6.1
        Suunto App Android 5.2.5 beta
        Suunto App IOs 2.45.0 (19123) beta on MBP M1

        1 Reply Last reply Reply Quote 1
        • surfboomerangS Offline
          surfboomerang
          last edited by

          I’m no developer, but I would remove the bearer token and subscription key from your public post…

          Suunto Vertical Titanium Solar
          OnePlus Nord 4

          1 Reply Last reply Reply Quote 4
          • First post
            Last post

          Suunto Terms | Privacy Policy