Replace a SharePoint site's library configurations.
POST/api/v1/sharepoint-sites/{sharepoint_site_id}/libraries/replaceconnectors:write
The body is the full set. A listed library keeps the stored value of any field left out; a configured library left out is removed; the * automatic policy is not touched. An empty set is refused while the site has configured libraries.
| Scope | connectors:write (sensitive) |
| Asynchronous | No |
| MCP tool | replace_sharepoint_site_libraries |
| Portal permissions | edit_sharepoint_library_mappings |
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 | SharePointLibrarySetRequestInput |
Responses
| Status | Description | Body |
|---|---|---|
200 | Success. | application/json SharePointLibrarySet 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
SharePointLibraryConfig
| Field | Type | Required | Description |
|---|---|---|---|
edit_group_ids | array of string | Required | |
edit_user_ids | array of string | Required | |
folder_id | string or null | Required | |
is_enabled | boolean | Required | |
library | string | Required | The SharePoint library GUID; * is the automatic policy for libraries without their own configuration. |
library_title | string or null | Required | |
number_prefix | string or null | Required | |
read_group_ids | array of string | Required | |
read_user_ids | array of string | Required | |
sharepoint_site_id | string | Required |
SharePointLibraryInputInput
| Field | Type | Required | Description |
|---|---|---|---|
edit_group_ids | array of string | Optional | |
edit_user_ids | array of string | Optional | |
folder_id | string or null | Optional | The Docwize folder the library's documents go to; null or 0 for none. |
is_enabled | boolean or null | Optional | |
library | string | Required | The SharePoint library GUID. * is reserved for the automatic policy. |
library_title | string | Required | |
number_prefix | string or null | Optional | Default SP. |
read_group_ids | array of string | Optional | |
read_user_ids | array of string | Optional |
SharePointLibrarySet
| Field | Type | Required | Description |
|---|---|---|---|
count | integer | Required | ≥ -2147483648; ≤ 2147483647 |
items | array of SharePointLibraryConfig | Required | |
sharepoint_site_id | string | Required |
SharePointLibrarySetRequestInput
| Field | Type | Required | Description |
|---|---|---|---|
items | array of SharePointLibraryInputInput | Optional |