Migrates an email message into the archive of the Google group using media upload.
This method supports an /upload
URI and accepts uploaded media with the following
characteristics:
- Maximum file size: The maximum mail message size is 25MB. This limit includes the message's metadata headers, body, and any attachments.
- Accepted Media MIME types:
message/rfc822
The project limit for the Groups Migration API is 10 queries per second (QPS) per account. The maximum API requests per day is 500,000. For more information about the RFC822 format, see the RFC822 standard format.
Request
HTTP request
POST https://www.googleapis.com/upload/groups/v1/groups/groupId/archive?uploadType=media
Parameters
Parameter name | Value | Description |
---|---|---|
Path parameters | ||
groupId |
string |
The email address of the group where the migrated email is archived. This email address is
a variable in the request's URL path. If a group owner changes the group's email
address either using the Admin console or the Directory API, you must use the new
email address in the groupId variable.
|
Required query parameters | ||
uploadType |
string |
The type of upload request to the
|
Authorization
This request requires authorization with the following scope:
Scope |
---|
https://www.googleapis.com/auth/apps.groups.migration |
For more information, see the authentication and authorization page.
Request body
Don't supply a request body with this method.
Response
If successful, this method returns a response body with the following structure:
{ "kind": "groupsmigration#groups", "responseCode": string }
Property name | Value | Description |
---|---|---|
kind |
string |
The kind of insert resource this is. Value: groupsmigration#groups |
responseCode |
string |
An API response’s status code for a migration request accompanied by the
HTTP status code.
The
|