Update a SharePoint site (JSON Merge Patch).
PATCH/api/v1/sharepoint-sites/{sharepoint_site_id}connectors:write
Changes the site's settings. A client_id is re-encrypted; certificates are installed another way.
| Scope | connectors:write (sensitive) |
| Asynchronous | No |
| MCP tool | update_sharepoint_site |
| Portal permissions | edit_sharepoint_sites |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
sharepoint_site_id | path | string | Required | |
Docwize-Version | header | string (date) | Optional | |
If-Match | header | string | Optional |
Request body
| Content type | Type |
|---|---|
application/json | SharePointSitePatchInput |
application/merge-patch+json | SharePointSitePatchInput |
Responses
| Status | Description | Body |
|---|---|---|
200 | Success. | application/json SharePointSite or object |
400 | invalid_version, malformed_json | application/problem+json Problem |
401 | token_expired, unauthenticated | application/problem+json Problem |
403 | forbidden, insufficient_scope, token_owner_inactive | application/problem+json Problem |
404 | not_found | application/problem+json Problem |
405 | method_not_allowed | application/problem+json Problem |
406 | not_acceptable | application/problem+json Problem |
412 | precondition_failed | application/problem+json Problem |
413 | payload_too_large | application/problem+json Problem |
415 | unsupported_media_type | application/problem+json Problem |
421 | wrong_region | application/problem+json Problem |
422 | validation_failed | application/problem+json Problem |
500 | internal_error | application/problem+json Problem |
503 | tenant_unavailable, unavailable | application/problem+json Problem |
504 | timeout | application/problem+json Problem |
Errors
The problem codes this operation can answer with. Each code links to its page.
Schemas
SharePointSite
| Field | Type | Required | Description |
|---|---|---|---|
audit_lookback_days | integer | Required | ≥ -2147483648; ≤ 2147483647 |
created_at | string (date-time) or null | Required | |
enable_full_sync | boolean | Required | |
entra_tenant | string | Required | |
expand_entra_groups | boolean | Required | |
folder_id | string or null | Required | The Docwize folder the imported documents are filed under; null for none. |
has_certificate | boolean | Required | |
has_credentials | boolean | Required | Whether the application ID and certificate are stored. |
import_actions | string or null | Required | |
include_analytics | boolean | Required | |
include_audit | boolean | Required | |
is_active | boolean or null | Required | |
last_synced_at | string (date-time) or null | Required | |
library_count | integer | Required | Libraries with their own enabled configuration. ≥ -2147483648; ≤ 2147483647 |
number_prefix | string or null | Required | |
root_folder | string | Required | |
schedule_day | integer or null | Required | |
schedule_hour | integer or null | Required | |
schedule_type | string or null | Required | daily, weekly, monthly, or null when the schedule is off. |
sharepoint_site_id | string | Required | |
site_name | string | Required | |
site_url | string | Required |
SharePointSitePatchInput
| Field | Type | Required | Description |
|---|---|---|---|
audit_lookback_days | integer or null | Optional | |
created_at | string (date-time) or null | Optional | |
enable_full_sync | boolean or null | Optional | |
entra_application | string or null | Optional | |
entra_tenant | string or null | Optional | |
expand_entra_groups | boolean or null | Optional | |
folder_id | string or null | Optional | |
has_certificate | boolean or null | Optional | |
has_credentials | boolean or null | Optional | |
import_actions | string or null | Optional | |
include_analytics | boolean or null | Optional | |
include_audit | boolean or null | Optional | |
is_active | boolean or null | Optional | |
last_synced_at | string (date-time) or null | Optional | |
library_count | integer or null | Optional | |
number_prefix | string or null | Optional | |
root_folder | string or null | Optional | |
schedule_day | integer or null | Optional | |
schedule_hour | integer or null | Optional | |
schedule_type | string or null | Optional | |
sharepoint_site_id | string or null | Optional | |
site_name | string or null | Optional | |
site_url | string or null | Optional |