Update a SaaS provisioning rule draft
Overwrite the draft of the natural-language provisioning rule for this SaaS, and optionally publish it in the same call. You must provide the COMPLETE rule text — this fully replaces the draft, it does not append. Call getSaasById first and re-send the full, edited body. With publish: true the new draft goes live immediately, which is the one-call path for a change the user has already confirmed; without it the draft is written but stays offline until publishSaasRule is called.
Authorizations
Use your Primo API key in the Authorization header as Bearer <API_KEY>.
Path Parameters
Body
The COMPLETE new provisioning rule text. This fully replaces the draft — it is not appended.
Set to true to publish the rule in the same call: the draft is written and immediately copied to the published text the agent reads at runtime. Use it when the user has already confirmed the change — a unitary request such as "block anyone outside Finance from admin access" is that confirmation — so one edit costs one approval instead of two. Leave it out for an open-ended rewrite the user has not seen yet: the draft is saved and stays offline until publishSaasRule.
Response
Provisioning rule configured for this SaaS, or null if no rule has been authored yet.