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
      • Book your Agile Fundamentals training
      • Book you Kanban workshop
      • 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)
    • >> Go to DataMiner Docs
  • DevOps
    • About the DevOps Program
    • Sign up for the DevOps Pogram
    • 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

How can I get the parameter from the request in a user-defined API?

Solved115 views3 days agoautomation scripts User-Defined
3
Jason Wan [SLC] [DevOps Advocate]284 3 days ago 0 Comments

Hi All,

I have a script that sends a PUT request to a user-defined API with an ID parameter to indicate which object I want to change. For example:

api/custom/radio/router/event/update?id=1f837456-4305-4208-b417-6e536986a1a7

However, when I try to retrieve the ID from the user-defined API, I cannot find a way to access it using the ApiTriggerInput object.

I tried using ApiTriggerInput.Parameters and ApiTriggerInput.Route, but neither of them returns the result I want.

Relevant documentation: https://docs.dataminer.services/dataminer/Functions/User-Defined_APIs/Defining_an_API/UD_APIs_Examples.html?q=ApiTriggerInput

Is there a way to retrieve the parameter from the request in a user-defined API?

Thanks!

Jason Wan [SLC] [DevOps Advocate] Selected answer as best 3 days ago

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
6
Ive Herreman [SLC] [DevOps Enabler]14.02K Posted 3 days ago 1 Comment

Hi Jason,

You can access this like so:

requestData.QueryParameters.TryGetValue("id" /*your param name*/, out string paramValue);

Jason Wan [SLC] [DevOps Advocate] Selected answer as best 3 days ago
Jason Wan [SLC] [DevOps Advocate] commented 3 days ago

Hi Ive,
It works. Thank you so much!

You are viewing 1 out of 1 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

© 2025 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