Skip to main content
Question

How to Implement Updating a Custom Profile Field via Widget Service SDK?

  • March 4, 2026
  • 3 replies
  • 30 views

I’m trying to implement updating a custom profile field using a Connector and the Widget Service SDK (PUT method), and I’d appreciate guidance on the correct implementation approach.

Specifically:

  • What is the recommended way to update a custom profile field via the Widget SDK?

  • How should dynamic path parameters (e.g., {{userId}}, {{field}}, {{value}}) be configured in the connector?

  • How should those parameters be passed from sdk.connectors.execute()?

  • If the field value contains JSON, what is the proper way to handle it?

It would be extremely helpful if someone could share a working example of:

  1. The connector configuration, and

  2. The corresponding sdk.connectors.execute() implementation in the widget.

Looking forward to guidance and best practices.

3 replies

AndrewK
  • Contributor ⭐️⭐️⭐️
  • March 4, 2026

Hello, I recently had a very similar question. Short answer, you can’t use path parameters with the connector. You can read ​@marekkoszlak’s response here.


marekkoszlak
  • Gainsight Employee ⭐️
  • March 5, 2026

Hi Kritika! Thank you for sharing this question. As Andrew mentioned, dynamic path parameters are not currently supported in connectors.

That said, I'd love to learn more about the use case you're trying to solve. Working with user context (like profile fields) and interacting with CC data from the community frontend more broadly are areas my team and I are actively looking to improve, and hearing about real-world scenarios like yours would be really valuable for shaping that work.

Would you be open to having a quick call to walk me through what you'd like to build? If so, please let me know and I’ll follow-up with some scheduling options.


  • Author
  • Contributor ⭐️
  • March 5, 2026

@marekkoszlak Hi! thank you for the detailed response and for the openness to discuss this further.

Our use case is fairly straightforward: we’ve created a custom user profile field and would like to update it programmatically based on certain frontend-driven actions.

The API call itself works correctly when tested externally (via Bruno) using client credentials. However, when attempting to execute the same update through a Secure API Connector from within a custom HTML widget, we receive a 500 error.

Taking into account the limitations mentioned around dynamic path parameters, we’re seeking clarification on:

  • Whether updating profile fields via PUT is supported at all through Secure API Connectors

  • If not, what is the recommended and supported way to handle this type of requirement?

If you need any additional details about our implementation or the specific scenario, we’re happy to connect and share more context.