How do I create a new API version?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Dngo
    Junior Member
    • Aug 2025
    • 3

    #1

    How do I create a new API version?

    Default in EspoCRM API version is domain/api/v1/ . Now I try making new version API v2, v3, v4,..... how can I make versions intelligently and correctly, please help me
  • jamie
    Member
    • Aug 2025
    • 30

    #2
    why do you want todo that?

    Comment

    • Dngo
      Junior Member
      • Aug 2025
      • 3

      #3
      hi Jamie
      In my project, I will need to implement APIs with multiple versions because each version will be used for different purposes, so I am try making them. If you have any ideas or implementation methods, please help me. Thanks

      Comment


      • jamie
        jamie commented
        Editing a comment
        sounds a bit crazy and you can't just use different endpoints, or provide an argument to each one? probably not as graceful as your solution but old Yuri can be a bit set in his ways

        if you look into the slim routeing you might be able todo something in there

        so you want like v2 to update database y and v3 to call api z? that sounds a bit like multiable end points to me
    • Dngo
      Junior Member
      • Aug 2025
      • 3

      #4
      Can you give me an idea to implement this?
      Thanks
      yuri

      Comment

      • emillod
        Active Community Member
        • Apr 2017
        • 1469

        #5
        You should consider creating custom endpoints instead of creating new versions of api You can add it via routes.json and apply login in Tools for example.

        Comment

        Working...