iotcreators.com web
    • Login
    • Search
    • forum.iotcreators.com
    • docs.iotcreators.com
    • Tags
    • Popular
    • Recent
    • Register

    Delete subscriptions via api

    iotcreators.com portal & API
    t-mobile nl api postman
    2
    4
    121
    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
      Martijn Kooijman last edited by Aleksandra Klinkner

      I seem to have double resource and lifecycle subscriptions for my device. I tried to delete them via postman but the api in the postman flie seems incomplete and does not work wharis the correct request and request body

      1 Reply Last reply Reply Quote 0
      • E
        Eric Barten iotcreators.com team last edited by

        The correct syntax for deleting a subscription is

        curl --location --request DELETE 'https://iot.netwerk.t-mobile.nl/m2m/subscriptions/98f7bf0b-0000-0000-000-e077030e42ae' \
        --header 'Content-Type: application/json' \
        --header 'Authorization: Basic xxx' \
        --data-raw ''
        

        The subscription Id to be used is the one of the packets that you receive!
        And Basic Auth is your authorization header.

        1 Reply Last reply Reply Quote 0
        • M
          Martijn Kooijman last edited by

          @Eric-Barten Thanks, that worked!

          1 Reply Last reply Reply Quote 0
          • M
            Martijn Kooijman last edited by

            @Eric-Barten I still get the extra messages delivered even after deleting all but one subscriptions. Any thoughts on how to tackle this? Could it have something to do with downlinks not arriving? for example how lomg should I wait after sending before receiving?

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post