Documentation Index

Fetch the complete documentation index at: https://developer.rocket.chat/llms.txt

Use this file to discover all available pages before exploring further.

Refresh OAuth Service (Realtime)

Prev Next

Refresh the OAuth services in a workspace.

Method

Requires Auth

Permission

Setting

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"
    }
}

Changelog

Version

Description

0.48.2

Added