Search Results for

    Show / Hide Table of Contents

    Method SetAnnotationSettingsForUser

    SetAnnotationSettingsForUser(String, String, AnnotationSettingsContract)

    Set user settings for annotations

    Declaration
    void SetAnnotationSettingsForUser(string connectionId, string userId, AnnotationSettingsContract annotationSettings)
    Parameters
    Type Name Description
    System.String connectionId

    The connection id to identify your connection. See also ConnectionId

    System.String userId

    The user id (for Id) to set annotation settings

    AnnotationSettingsContract annotationSettings

    Annotation settings to set

    Examples

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

    Example for set user settings for annotations.

    {
       "connectionId":"ded196ba-19e9-4bd4-ba86-433b3225979a",
       "userId": "0100a003-38a7-11d8-a902-0050bf427e8f",
       "annotationSettings": {
         "AreaColor": -256,
         "CoveringArea": -16777216,
           "Templates": [{
           "ColorBackground": -1,
           "ColorText": -16776961,
           "FontBold": true,
           "FontItalic": false,
           "FontName": "Arial",
           "FontSize": 20,
           "FontUnderline": false,
           "Rotation": 0,
           "TemplateName": "Genehmigt",
           "TemplateText": "Genehmigt {%x}" }]
    }

    Response:

    { }
    Exceptions
    Type Condition
    ServiceException

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

    ServiceException

    The administrative context {administrativeContext} is already checked out by user {displayLoginName} (10129)

    ServiceException

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

    ServiceException

    Could not parse hexadecimal color code string {hexColorCodeString} to a valid ARGB value (10207)

    ServiceException

    Not enough rights because it is a read-only user (10378)

    Back to top Copyright © Kendox