跳到主要内容

getSecurityInfo

FileShareArrayWrapper getSecurityInfo(BaseBatchRequestDto)

POST /api/2.0/files/share

Get sharing rights in batch

Returns who has access to the files and folders listed in the request, merged into one list of subjects, and is the batch counterpart of GET api/2.0/files/file/{id}/share and GET api/2.0/files/rooms/{id}/share. Identifiers come from any listing operation, such as GET api/2.0/files/{folderId}. The caller needs read access to every listed entry: a single entry it cannot read makes the whole call fail instead of dropping that entry, so the list has to be filtered beforehand. Identifiers that match nothing are skipped without an error, and an empty list of identifiers gives an empty answer. The call is read-only. Each account or group appears once: the caller's own record comes first, the owner's record second, and the rest are ordered by display name. When the same subject holds different rights on the listed entries, its access is reported as the Varies value instead of a real level, which means the entries have to be inspected one by one to see the difference. Records that describe external links are included only for a caller that is allowed to read the links of the entry.

Parameters​

NameInTypeDescriptionNotes
BaseBatchRequestDtobodyBaseBatchRequestDto[optional]

Responses​

Status codeDescriptionTypeResponse headers
200The merged sharing rights of the listed files and folders, one record per account or groupFileShareArrayWrapperX-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset
403The caller may not read one of the listed files or folders--
500An id is a number that is not a 32-bit integer--
401UnauthorizedErrorApiResponse-
429Too Many Requests.ErrorApiResponseRetry-After
400Bad Request.ErrorApiResponse-
502Bad Gateway. Returned by the reverse proxy, response body may be HTML and not JSON.--
503Service Unavailable. Returned by the reverse proxy, response body may be HTML and not JSON.--

Return type​

FileShareArrayWrapper

Authorization​

Basic, OAuth2 (scopes: read, write), ApiKeyBearer, asc_auth_key, Bearer, OpenId

HTTP request headers​

  • Content-Type: application/json
  • Accept: application/json