Do we have any specific api and payload to create APM alerts

Hi Team,

I want to create Alerts for APM data using python. Can you please let me know the api and payload to create them?

I have tried using it but there are no direct rule types available to create the payload.

We are using elastic cloud 8.9.0

Thanks,
Surya