• Switch the caller's "current" profile. The current profile is used for permissions checking and profile_id field settings for most operations in Verdocs. It is important to select the appropropriate profile before calling other API functions.

    import {Profiles} from '@verdocs/js-sdk/Users';

    const newProfile = await Profiles.switchProfile('PROFILEID');

    Parameters

    Returns Promise<ISwitchProfileResponse>