Get Started
Usage API
More information

PUT api/2.0/mail/accounts/oauth This function requires authentication

Description

Updates a mail account with OAuth authentication (only Google OAuth is supported).

Parameters
Name Description Type Example
code
sent in body
New OAuth code string some text
type
sent in body
New OAuth service type: 0 - Unknown, 1 - Google System.Byte
mailboxId
sent in body
Mailbox ID number 1234
Example
PUT api/2.0/mail/accounts/oauth
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json

{
  "code": "some text",
  "type": 0,
  "mailboxId": 1234
}
Returns

Updated OAuth account