Update a client token.

Details

Update a client token.

An account token or server token may be used to run this endpoint.

Parameters

path

  • id (required): The ID of the client.
  • tokenId (required): The ID of the client token.

body

  • description (optional): The description of the client token.

Responses

200

400

  • Client Invalid: The standard error structure defines this error as invalid parameters, with an invalid ID. In this context, it means that the ID given for a client is invalid.
  • Client Token Invalid: This standard error structure defines this error as invalid parameters, with an invalid ID. In this context, it means that the ID given for the client token is invalid.
  • No Query String Allowed: The standard error structure defines this error as invalid parameters, with additional parameters in the query string. In this context, it means that no query string is allowed at all when calling this endpoint.

404

  • Client Not Found: This error means that a client with the given ID was not found. This is distinct from an invalid client ID being specified; this means that the client ID once existed, but no longer does.
  • Client Token Not Found: This error means that a client token with the given ID was not found. This is distinct from an invalid client token ID being specified; this means that the client token ID once existed, but no longer does.

Examples

HTTP

PUT https://ioe.droplit.io/api/clients/CLIENT-ID/tokens/TOKEN-ID HTTP/1.1
authorization: TOKEN
content-type: application/json
{
    "description": "primary access token"
}

Droplit Console

droplit token update TOKEN-ID PROPERTY-NAME PROPERTY-VALUE

Droplit SDK

droplit.tokens.updateToken("CLIENT-ID", "TOKEN-ID", { "description" : "DESCRIPTION" });
Language
Authorization
Header
Click Try It! to start a request and see the response here!