Provisioning plan update (web services source)

Hi,
I apologize in advance for the simplicity of the question. How to “update the provisioning plan”?
I am reading the documentation about the web services, and in the section “Add entitlement when enabling account”, it is mentionned to “Add the following to the provisining plan”. See below.
https://documentation.sailpoint.com/connectors/webservices/help/integrating_webservices/add_entitlements_when_enabling_accounts.html

Is this done by the Provisioning Policy API? By that API, can we also update the provisioning plan not only for creating account, but also to add entitlements, update accounts etc… ?

Hi,
You need to write a Before Provisioning Rule and ensure below things
Get Object for the user which needs to be enabled/Disabled
Put the respective Entitlements from the Get Object of the User in to provisioning Plan to add/remove it.

Thank you for the answer. Then beside example, where can we find the documentation about the ProvisioningPlan class? I could only find one example (below) on how to use the provisioningPlan attribute, but is there a more detailed documentation for how to use that attribute of the rule?

https://documentation.sailpoint.com/connectors/webservices/help/integrating_webservices/beforeoperationrule.html#:~:text=The%20following%20is%20an%20example%20is%20for%20the%20provisioningPlan%20rule%3A

Here is a sample document which should help you for configuration