Skip to content

Latest commit

 

History

History
64 lines (51 loc) · 1.49 KB

File metadata and controls

64 lines (51 loc) · 1.49 KB

Remove OAuth Service

Remove an OAuth service.

Name Requires Auth Permission Setting
removeOAuthService Yes add-oauth-service None

Payload Parameters

Argument Example Required Description
name okta Required The name of the OAuth service you want to remove.

Example call

{
    "msg": "method",
    "method": "removeOAuthService",
    "id": "2",
    "params": [
        "Zapier"
    ]
}

Example Response

Success

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

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.

{% tabs %} {% tab title="No Permission" %}

{
    "msg": "result",
    "id": "2",
    "error": {
        "isClientSafe": true,
        "error": "error-not-allowed",
        "reason": "Not allowed",
        "details": {
            "method": "removeOAuthService"
        },
        "message": "Not allowed [error-not-allowed]",
        "errorType": "Meteor.Error"
    }
}

{% endtab %} {% endtabs %}