Skip to content
DataMiner Dojo

More results...

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Search in posts
Search in pages
Search in posts
Search in pages
Log in
Menu
  • Updates & Insights
  • Questions
  • Learning
    • E-learning Courses
    • Tutorials
    • Open Classroom Training
    • Certification
      • DataMiner Fundamentals
      • DataMiner Configurator
      • DataMiner Automation
      • Scripts & Connectors Developer: HTTP Basics
      • Scripts & Connectors Developer: SNMP Basics
      • Visual Overview – Level 1
      • Verify a certificate
    • YouTube Videos
    • Solutions & Use Cases
      • Solutions
      • Use Case Library
    • Agility
      • Learn more about Agile
        • Agile Webspace
        • Everything Agile
          • The Agile Manifesto
          • Best Practices
          • Retro Recipes
        • Methodologies
          • The Scrum Framework
          • Kanban
          • Extreme Programming
        • Roles
          • The Product Owner
          • The Agile Coach
          • The Quality & UX Coach (QX)
      • Book your Agile Fundamentals training
      • Book you Kanban workshop
    • >> Go to DataMiner Docs
  • DevOps
    • About the DevOps Program
    • Sign up for the DevOps Program
    • DataMiner DevOps Support
    • Feature Suggestions
  • Downloads
  • Swag Shop
  • PARTNERS
    • Business Partners
    • Technology Partners
  • Contact
    • Sales, Training & Certification
    • DataMiner Support
    • Global Feedback Survey
  • >> Go to dataminer.services

User-Defined API – Routes

Solved109 views8 hours ago
3
João Azevedo399 2 days ago 2 Comments

Hi everyone, I hope you’re all doing well.

I’d like to know if there is a simple way to define or retrieve a subpath from the request URL when triggering a User-Defined API, without having to create every route in the System Center page.

For example, I have created the route api/custom/devices, which returns device information from an element table. However, I would also like to have a route such as api/custom/devices/status, where only the current device’s status parameter is returned.

João Azevedo Selected answer as best 8 hours ago
Rene De Posada [SLC] [DevOps Advocate] commented 2 days ago

Hi João – are you trying to execute the same script and want it to return a different result based on the route? If so, you could instruct the script what to return (e.g., devices or status) in the body of the request.

João Azevedo commented 1 day ago

The idea was to avoid creating every route manually in System Center. Instead, we defined a single base route (e.g., /devices) and handled any requested subroutes (such as /devices/status) dynamically within the script.

2 Answers

  • Active
  • Voted
  • Newest
  • Oldest
2
Matthias Declerck [SLC] [DevOps Advocate]2.98K Posted 1 day ago 1 Comment

Hi João,

You can have 1 user-defined script which contains multiple subroutes.
See example:

João Azevedo Edited comment 10 hours ago
João Azevedo commented 10 hours ago

Thank you for your answer Matthias, i will try this method and get back to you if it works for me, that what i was looking for.

You are viewing 1 out of 2 answers, click here to view all answers.
Please login to be able to comment or post an answer.

My DevOps rank

DevOps Members get more insights on their profile page.

My user earnings

0 Dojo credits

Spend your credits in our swag shop.

0 Reputation points

Boost your reputation, climb the leaderboard.

Promo banner DataMiner DevOps Professiona Program
DataMiner Integration Studio (DIS)
Empower Katas
Privacy Policy • Terms & Conditions • Contact

© 2026 Skyline Communications. All rights reserved.

DOJO Q&A widget

Can't find what you need?

? Explore the Q&A DataMiner Docs

[ Placeholder content for popup link ] WordPress Download Manager - Best Download Management Plugin