API Connect

API Connect

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.


#API Connect
#Applicationintegration
#APIConnect
 View Only
  • 1.  Add custom attribute in Analytics

    Posted Wed May 10, 2023 04:23 PM

    I am using custom security. I send request in API Connect to backend server. I want to hide cookie and authorization from response.

    First, not sure the response header includes all values from request header, which is security breach. So i had to add javascript to explicitly remove header values for authorization andx-api-key.

    Second, i woul like add backend server name in analytics, to help in troubleshooting, but not include server name in response header. Is that feasible 

    I am using 2018



    ------------------------------
    Sam IBMer
    ------------------------------


  • 2.  RE: Add custom attribute in Analytics

    Posted Thu May 11, 2023 03:06 AM

    I am afraid support for APIC v2018 has now ended. I strongly advise you to upgrade to APIC 10.0.5 immediately.

    Adding custom data to analytics is possible in 10.0.5 but that process will not work in v2018.



    ------------------------------
    Chris Dudley
    ------------------------------



  • 3.  RE: Add custom attribute in Analytics

    Posted Sun February 18, 2024 08:56 AM

    Hi everyone (Chris)...

    Found this old thread - an we are curious as well :)

    We are on 10.0.5 and have not found a way to add custom data from our gateway scripts to analytics.. We are probably blind when it comes to read through the documentation, he he.. 

    Any help on where to find some information would be wonderful.

    Thanks in advance.



    ------------------------------
    Team API
    ------------------------------



  • 4.  RE: Add custom attribute in Analytics

    Posted Sun February 18, 2024 09:10 AM

    Hiya,

    Its pretty simple using gatewayscript, have a look at the doc page here:
    Modifying analytics API event data

    Ibm remove preview
    Modifying analytics API event data
    How to modify API event data before it is stored.
    View this on Ibm >

    Just make sure you add the custom data inside the custom_data object, otherwise it will not be indexed or searchable in analytics.

    Cheers,

    Chris



    ------------------------------
    Chris Dudley
    ------------------------------



  • 5.  RE: Add custom attribute in Analytics

    Posted Thu December 05, 2024 09:41 AM

    Hi Chris 

    I am reaching out regarding the modification of the response body in our analytics platform. I have reviewed the documentation, which indicates that direct modification of the response body is not supported. Instead, it suggests that we can add custom data fields to the response.However, I have successfully modified the request body and would like to explore how I can proceed further with modifying the response body. Could you please provide guidance or any potential workarounds that might be available?
    Thank you for your assistance. I look forward to your response.

    Regards,
    Satheesh Jilakoti



    ------------------------------
    satheesh satheeshjilakoti@pronteff.com
    ------------------------------



  • 6.  RE: Add custom attribute in Analytics

    Posted Thu December 05, 2024 09:50 AM

    Hiya

    Can you explain your use case please?

    Why are you trying to modify the consumer's response payload in analytics - shouldn't that be the same as was actually returned to the consumer ?

    If you want to store additional data then do so using the custom_data object.



    ------------------------------
    Chris Dudley
    ------------------------------