m365
Read a client's SharePoint sites live
/v1/m365/sharepoint-sitesReads the SharePoint sites of a client's Microsoft 365 tenant from Microsoft Graph now, at most limit of them. A client mapped to several Microsoft tenants needs m365TenantId. Answers unavailable when Microsoft refuses or cannot be reached.
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| clientId | query | Yes | string | — |
| m365TenantId | query | No | string | — |
| limit | query | No | integer | — |
Request body
No request body.
Responses and errors
200
Read a client's SharePoint sites live
- m365Tenant (required): object
- data (required): array
- count (required): integer
400
Error envelope. `error.code` carries the typed outcome and `error.type` resolves to its description.
- ValidationFailedError:
- allOf: ErrorEnvelope
401
Error envelope. `error.code` carries the typed outcome and `error.type` resolves to its description.
- UnauthorizedError:
- allOf: ErrorEnvelope
403
Error envelope. `error.code` carries the typed outcome and `error.type` resolves to its description.
- ForbiddenError:
- allOf: ErrorEnvelope
429
Error envelope. `error.code` carries the typed outcome and `error.type` resolves to its description.
- RateLimitedError:
- allOf: ErrorEnvelope
503
Error envelope. `error.code` carries the typed outcome and `error.type` resolves to its description.
- UnavailableError:
- allOf: ErrorEnvelope
Example
curl --request GET \
--url 'https://api.scopable.io/v1/m365/sharepoint-sites' \
--header 'Authorization: Bearer $SCOPABLE_API_KEY'Replace $SCOPABLE_API_KEY with a key created in Settings, API.
Need help with the API? …