revokeScopeConsentGrant(appId, grantId) {
    if (!appId) {
      return Promise.reject(new Error('OKTA API revokeScopeConsentGrant parameter appId is required.'));
    }
    if (!grantId) {
      return Promise.reject(new Error('OKTA API revokeScopeConsentGrant parameter grantId is required.'));
    }
    let url = `${this.baseUrl}/api/v1/apps/${appId}/grants/${grantId}`;

    const resources = [
      `${this.baseUrl}/api/v1/apps/${appId}/grants/${grantId}`,
      `${this.baseUrl}/api/v1/apps/${appId}`
    ];

    const request = this.http.delete(
      url,
      null,
      { resources }
    );
    return request;
  }
/**
   *
   * @param appId {String}
   * @param grantId {String}
   * @description
   * Revokes permission for the application to request the given scope
   */
@param appId {String}
@param grantId {String}
@description
Revokes permission for the application to request the given scope
@param appId { String } @param grantId { String } @description Revokes permission for the application to request the given scope
revokeScopeConsentGrant(appId, grantId) {
    if (!appId) {
      return Promise.reject(new Error('OKTA API revokeScopeConsentGrant parameter appId is required.'));
    }
    if (!grantId) {
      return Promise.reject(new Error('OKTA API revokeScopeConsentGrant parameter grantId is required.'));
    }
    let url = `${this.baseUrl}/api/v1/apps/${appId}/grants/${grantId}`;
    const resources = [
      `${this.baseUrl}/api/v1/apps/${appId}/grants/${grantId}`,
      `${this.baseUrl}/api/v1/apps/${appId}`
    ];
    const request = this.http.delete(
      url,
      null,
      { resources }
    );
    return request;
  }
revokeScopeConsentGrant ( appId , grantId ) { if ( ! appId ) { return Promise . reject ( new Error ( 'OKTA API revokeScopeConsentGrant parameter appId is required.' ) ) ; } if ( ! grantId ) { return Promise . reject ( new Error ( 'OKTA API revokeScopeConsentGrant parameter grantId is required.' ) ) ; } let url = ` ${ this . baseUrl } ${ appId } ${ grantId } ` ; const resources = [ ` ${ this . baseUrl } ${ appId } ${ grantId } ` , ` ${ this . baseUrl } ${ appId } ` ] ; const request = this . http . delete ( url , null , { resources } ) ; return request ; }
@param appId {String}
 @param grantId {String}
 @description
 Revokes permission for the application to request the given scope
@param appId { String } @param grantId { String } @description Revokes permission for the application to request the given scope