Skip to main content

Install a SharePoint site's certificate.

POST/api/v1/sharepoint-sites/{sharepoint_site_id}/install-certificateconnectors:write

upload_id is a completed upload session with purpose certificate (PEM, or PFX/P12 with certificate_password). The certificate replaces the site's; its thumbprint and the password are stored encrypted, and the password is never answered. A wrong password keeps the upload, so the call can be repeated.

Scopeconnectors:write (sensitive)
AsynchronousNo
MCP toolinstall_sharepoint_site_certificate
Portal permissionsupload_sharepoint_certificates

Parameters​

NameInTypeRequiredDescription
sharepoint_site_idpathstringRequired
Docwize-Versionheaderstring (date)Optional
Idempotency-KeyheaderstringOptionalmax 255

Request body​

Content typeType
application/jsonSharePointCertificateInstallInput

Responses​

StatusDescriptionBody
200Success.application/json SharePointCertificate or object
400invalid_version, malformed_jsonapplication/problem+json Problem
401token_expired, unauthenticatedapplication/problem+json Problem
403forbidden, insufficient_scope, token_owner_inactiveapplication/problem+json Problem
404not_foundapplication/problem+json Problem
405method_not_allowedapplication/problem+json Problem
406not_acceptableapplication/problem+json Problem
409conflict, idempotency_in_progressapplication/problem+json Problem
413payload_too_largeapplication/problem+json Problem
415unsupported_media_typeapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422idempotency_key_reused, validation_failedapplication/problem+json Problem
500internal_errorapplication/problem+json Problem
503tenant_unavailable, unavailableapplication/problem+json Problem
504timeoutapplication/problem+json Problem

Errors​

The problem codes this operation can answer with. Each code links to its page.

Schemas​

SharePointCertificate​

FieldTypeRequiredDescription
expires_atstring (date-time)RequiredWhen the certificate stops being valid.
has_certificate_passwordbooleanRequired
has_private_keybooleanRequiredWhether the file holds a private key that can be read; without one the site cannot sign in to Microsoft.
scheduled_sync_reads_itbooleanRequiredWhether the scheduled sync can read the file: it reads PEM only (a PFX/P12 serves discovery).
sharepoint_site_idstringRequired

SharePointCertificateInstallInput​

FieldTypeRequiredDescription
certificate_passwordstring or nullOptionalThe PFX/P12 file's password; stored encrypted, never answered.
upload_idstringRequiredA completed upload session with purpose certificate.