Search Results for

    Show / Hide Table of Contents

    Method UpdateUserSettings

    UpdateUserSettings(String, String, UserSettingsContract)

    Update settings of a user.

    Declaration
    void UpdateUserSettings(string connectionId, string userId, UserSettingsContract newUserSettings)
    Parameters
    Type Name Description
    System.String connectionId

    The connection id to identify your connection. See also ConnectionId

    System.String userId

    The user id. See also Id

    UserSettingsContract newUserSettings

    New user settings

    Examples

    POST http://YourServerName/InfoShare/Json/Common/UpdateUserSettings

    Example for update user settings.

    {
       "connectionId": "e08482f2-eb69-4693-b2c1-cdc87f641ec2",
       "userId": "172935af-62e0-e911-a94a-00155d290a08",
       "newUserSettings": {
         "FolderForPrivateSearches": null,
          "FolderForPublicSearches": null,
          "LastSelectedFolderPath": null,
          "PossibleTwoWayAuthenticationType": "Mail",
          "ShowSearchOptionButton": false }
    }

    Response:

    { }
    Exceptions
    Type Condition
    ServiceException

    The connection id {connectionId} isn't valid or has expired (10008)

    ServiceException

    Current user is not allowed to change user details (10037)

    ServiceException

    Folder not found {folderPath} (10025)

    ServiceException

    Two way authentication type ({twoWayAuthenticationType}) is invalid. Valid types are: {allowedTwoWayAuthenticationTypes} (10148)

    ServiceException

    Verification code is needed: Verification code not yet verified (10152)

    ServiceException

    Could not parse string ({twoWayAuthenticationType}) to a valid two way authentication type (10153)

    ServiceException

    Could not parse int {flag} to a valid two way authentication type (10154)

    ServiceException

    Import template not found {importTemplate} (10073)

    ServiceException

    Not allowed (10014)

    Back to top Copyright © Kendox