Search Results for

    Show / Hide Table of Contents

    Method DeleteRole

    DeleteRole(String, String)

    Delete a role

    Declaration
    void DeleteRole(string connectionId, string roleId)
    Parameters
    Type Name Description
    System.String connectionId

    The connection id to identify your connection. See also ConnectionId

    System.String roleId

    The role Id. See also Id

    Examples

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

    Example for delete a role.

    {
       "connectionId":"ded196ba-19e9-4bd4-ba86-433b3225979a",
       "roleId": "0100a003-38a7-11d8-a902-0050bf427e8f"
    }

    Response:

    { }
    Exceptions
    Type Condition
    ServiceException

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

    ServiceException

    Role not found {0} (10046)

    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

    Can not delete {ObjectType} {ObjectName} {ObjectId} because it is still in use in {ObjectType} {ObjectName} {ObjectId}. (10233)

    Back to top Copyright © Kendox