Skip to main content
Solved

How to set a PX Custom Event via the REST API?

  • August 13, 2025
  • 2 replies
  • 35 views

DannyPancratz
Forum|alt.badge.img+9

It’s not in the API documentation. (Edit: It’s there)

I have this slide form my implementation services and onboarding, but replicating that exact API call is returning a validation error. 

Take a look at the PX Rest API example; that’s what I’m trying to do

 

I have a support ticket open, but I’m wondering if anyone knows the issue. 

Best answer by link_black

@DannyPancratz 

 

Try replacing “property” with “propertyKey” in your JSON body.  The REST API JSON in that screen shot is incorrect.

 

The full REST API Documentation is linked from our PX Support Docs on this page.

 

Direct link to the Create Custom Event API documentation

 

 

2 replies

link_black
Forum|alt.badge.img+2
  • Gainsight Employee ⭐️⭐️
  • Answer
  • August 13, 2025

@DannyPancratz 

 

Try replacing “property” with “propertyKey” in your JSON body.  The REST API JSON in that screen shot is incorrect.

 

The full REST API Documentation is linked from our PX Support Docs on this page.

 

Direct link to the Create Custom Event API documentation

 

 


DannyPancratz
Forum|alt.badge.img+9
  • Author
  • VIP ⭐️⭐️⭐️⭐️⭐️
  • August 13, 2025

That did it! Thanks for the clarification on the API documentation; for some reason I thought it wasn’t in there. I was interpreting “Create Custom Event” to a call to create the Custom Event type, not sending the event occurrence. 

And this was a case where my AI helper was not helping. Glad to have the community and your help to actually solve it!