Skip to main content
DannyPancratz
VIP ⭐️⭐️⭐️⭐️⭐️
Aug 13, 2025 5:17 PM UTC
Solved

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

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. 

    link_black
    Gainsight Employee ⭐️⭐️
    Aug 13, 2025 5:51 PM UTC

    ​@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. 

     

     

    -- Link

    2 replies

    link_black
    Gainsight Employee ⭐️⭐️
    Aug 13, 2025 5:51 PM UTC

    ​@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. 

     

     

    Translate
    -- Link
    DannyPancratz
    VIP ⭐️⭐️⭐️⭐️⭐️
    Aug 13, 2025 5:56 PM UTC

    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! 

    Translate
    FYI: I am no longer active in this community