Forum Discussion

Lewis_Beard's avatar
31 days ago
Solved

API v1 reference?

I found a module that I suppose I had overlooked that might be v1 of the API. Its a custom module that ... well the details dont matter. A few days ago on the 24th or 25th, it just straight up stopped working, some 406 error, it looks like an old V1 API call or something. I cant find it in the V3 API. "/setting/admin/groups" is the call.

Anyway, I was just going to re-write it in V3 (it does other stuff other than this one dall) but I cant even find anything for counting user groups directly in the V3 API. I'm guessing I'll have to snag all the users and count the groups myself. No big deal.

But all this isnt really what I'm asking. I'm just wondering .... is there still a full reference of the old V1 API, like the full swagger? My search magic is either bad, or its not up anymore. Maybe both. :)

Thanks!

 

3 Replies

  • They are still available. You can reach it at https://www.logicmonitor.com/support/rest-api-developers-guide/v1/devices/about-the-device-resource . I'm not able to find a URL to go directly to the documentation root, so this points to one of the endpoints. But if you go there and look at the menu to the left under "REST API v1", you can see all the other endpoints.

    Actually it's still useful to refer to the v1 documentation even when using v3 as a lot of notes are just not in swagger.

  • jnahm's avatar
    jnahm
    Icon for Product Manager rankProduct Manager

    Hi Lewis. Thank you for the feedback. Our recommendation is to move to API v3, as this is our current flagship API, and where we'll be making most of our updates.

    Would you be able to share details of the custom module where you're getting the 406 error? The API v1 endpoint should still be available. Happy to discuss further.

    • Lewis_Beard's avatar
      Lewis_Beard
      Icon for Expert rankExpert

      I'm going to re-write the module regardless, so really I was hoping to see a reference so that I could convert the logic to v3. But dont worry about it, its not critical or anything. I can tell from the comments more or less what it was doing, just some metric that obviously nobody cared about enough to report to me that it was broken. :)

      If the api v1 docs have been removed, I'll move on. All good, no worries.