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 1.1k Views 3 Watching
    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.50.28
        SSSWHR BARO Amber - 2.8.32
        Samsung A5 2016 - Android 7.0
        Samsung A33 2022 - Android 16 - One UI 8.0
        Suunto App Android 6.10.7 beta
        Suunto App IOs 3.8.1 (21743) beta on MBP M1 Max

        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 3

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • First post
            Last post

          Suunto Terms | Privacy Policy