Refresh OAuth Service

Resfresh the OAuth services in a workspace.

NameRequires AuthPermissionSetting

refreshOAuthService

Yes

add-oauth-service

None

Example call

{
    "msg": "method",
    "method": "refreshOAuthService",
    "id": "44728"
}

Example Response

Success

{
    "msg": "result",
    "id": "44728"
}

Error

Any of the following errors can occur on the endpoint.

  • No Permission: Occurs when the authenticated user doesn't have the add-oauth-service permission.

{
    "msg": "result",
    "id": "44728",
    "error": {
        "isClientSafe": true,
        "error": "error-action-not-allowed",
        "reason": "Refresh OAuth Services is not allowed",
        "details": {
            "method": "refreshOAuthService",
            "action": "Refreshing_OAuth_Services"
        },
        "message": "Refresh OAuth Services is not allowed [error-action-not-allowed]",
        "errorType": "Meteor.Error"
    }
}

Change Log

VersionDescription

0.48.2

Added

Last updated

Rocket.Chat versions receive support for six months after release.