I am trying to understand how to manipulate triggers via the Rest API (turn them on and off). What is the difference between the "ApexTrigger" and "ApexTriggerMember" object? Does any one have any insights into updating (via PATCH method or other) these objects status?

Thanks in advance!


It is all in the documentation:

ApexTriggerMember Represents the working copy of an Apex trigger for editing, saving or compiling in a MetadataContainer.

ApexTrigger Represents an Apex trigger.

Note Although Apex classes and triggers have the Create and Update field properties, a runtime exception occurs if you try to create or update them using the API. Instead, use the Force.com Migration Tool, the Salesforce user interface, or the Force.com IDE to create or update Apex classes or triggers.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.