Replace a SharePoint connection's site policy
Replaces the WHOLE policy — the complete set of sites this connection may reach, never a delta. expected_policy_version is a compare-and-set guard: send the version the read returned, or omit it to assert there was no policy at all. Either expectation failing is a 409, and the way forward is to re-read and decide against what the policy now says rather than to resend this one. A selection that cannot become a policy is a 422 naming the entry that refused. Authority is the same rule as the read.
Send sites only. The document libraries under them are enumerated here, from the selection, because a drive -> site pair is what admits a call rooted at a drive and a client that could state one would be granting itself reach. That enumeration is live: if it cannot be finished the previous policy is left exactly as it was and the answer is a 503, because a policy naming a site with none of its libraries admits the site and refuses every document in it.
Request
- Base URL: https://api.patricia.app (the document declares no server; this is the origin it was published from)
- URL: https://api.patricia.app/v1/integrations/accounts/{account_id}/scope
- Auth: HTTP bearer
Path parameters
Headers
Request body
Response
Successful Response
Changes
No recorded changes to this operation across all 1 revision of this API.