Search Results for

    Show / Hide Table of Contents

    Method EditApiToken

    EditApiToken(String, String, ApiTokenOptionsContract)

    Edit API token.

    Declaration
    void EditApiToken(string connectionId, string tokenId, ApiTokenOptionsContract options)
    Parameters
    Type Name Description
    System.String connectionId

    The connection id to identify your connection. See also ConnectionId

    System.String tokenId

    The token id.

    ApiTokenOptionsContract options

    The api token options.

    Examples

    POST https://YourServerName/InfoShare/Json/Authentication/EditApiToken

    Example for a revoke edit token.

    {
       "connectionId": "6bc655a4-c079-4535-a733-f259e3232a3a",
       "tokenId": "7bc655a4-c079-4535-a733-f259e3232a3b",
       "options": {
         "TokenName": "TokenName",
         "ExpirationDate": "2019-09-26T22:00:00",
         "WithConnenctionId": "true" },
       "Scope": {
           "LoginAsUser": true }
    }

    Response:

    { }
    Exceptions
    Type Condition
    ServiceException

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

    Back to top Copyright © Kendox