跳到主要内容

resendEmailInvitations

resendEmailInvitations(id, UserInvitation)

POST /api/2.0/files/rooms/{id}/resend

Resend the room invitations

Sends the room invitation email again to members who were invited but have not joined yet. resendAll covers every pending invitation of the room and makes usersIds irrelevant, while an explicit list without that flag is limited to the named accounts. An account that has already accepted the invitation, is not a member of the room, or is invisible to the caller is skipped without an error, and a request that names nobody and does not set the flag does nothing, so a successful answer never proves that a message went out. Nothing about the room or its membership changes, and the operation can be repeated. The caller must be a manager of the room, an archived room is refused, a room template is answered as missing, and a malformed account id is rejected as an invalid request. The call is rate limited, so a client that loops over members should send one batch instead. The response carries no body.

Parameters​

NameInTypeDescriptionNotes
idpathInteger (int32)The room whose invitations are resent, named by the identifier that GET api/2.0/files/rooms reports for it.[required] [example: 1]
UserInvitationbodyUserInvitationWhich pending invitations to send again.[required]

Responses​

Status codeDescriptionTypeResponse headers
200The invitations that were still pending have been sent again-X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset
400The request body cannot be read, or a third-party identifier refers to a storage account that is not connected--
403The caller is not a manager of the room, or the room is archived--
404The room does not exist or is a room template, or the id is neither a 32-bit number nor a third-party identifier of a known storage type--
500A third-party identifier carries a storage account number beyond the 32-bit range--
401UnauthorizedErrorApiResponse-
429Too Many Requests.ErrorApiResponseRetry-After
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​

null (empty response body)

Third-party storage​

For a file or folder in a connected third-party storage the identifier is a string such as sbox-42, and the call differs in these parts only:

NameInTypeDescriptionNotes
idpathStringThe room whose invitations are resent, named by the identifier that `GET api/2.0/files/rooms` reports for it.[required] [example: sbox-42]

Authorization​

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

HTTP request headers​

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