Update an Access Token
put
/api/v2/tokens/{id}/
Make a PUT or PATCH request to this resource to update this access token. The following fields may be modified:
-
description: Optional description of this access token. (string, default="") -
scope: Allowed scopes, further restricts user's permissions. Must be a simple space-separated string with allowed scopes ['read', 'write']. (string, default="write")
For a PUT request, include all fields in the request.
Request
Supported Media Types
- application/json
Path Parameters
Root Schema : OAuth2TokenDetail
Type:
Show Source
object-
application:
integer
Title:
ApplicationRead Only:true -
created:
string
Title:
CreatedRead Only:true -
description:
string
Title:
Description -
expires:
string(date-time)
Title:
ExpiresRead Only:true -
id:
integer
Title:
IdRead Only:true -
modified:
string
Title:
ModifiedRead Only:true -
refresh_token:
string
Title:
Refresh tokenRead Only:true - related: string
-
scope:
string
Title:
ScopeDefault Value:writeAllowed scopes, further restricts user's permissions. Must be a simple space-separated string with allowed scopes ['read', 'write']. -
summary_fields:
string
Title:
Summary fieldsRead Only:true -
token:
string
Title:
TokenRead Only:true -
type:
string
Title:
TypeRead Only:true -
url:
string
Title:
UrlRead Only:true -
user:
integer
Title:
UserRead Only:trueThe user representing the token owner
Response
Supported Media Types
- application/json
200 Response
Root Schema : OAuth2TokenDetail
Type:
Show Source
object-
application:
integer
Title:
ApplicationRead Only:true -
created:
string
Title:
CreatedRead Only:true -
description:
string
Title:
Description -
expires:
string(date-time)
Title:
ExpiresRead Only:true -
id:
integer
Title:
IdRead Only:true -
modified:
string
Title:
ModifiedRead Only:true -
refresh_token:
string
Title:
Refresh tokenRead Only:true - related: string
-
scope:
string
Title:
ScopeDefault Value:writeAllowed scopes, further restricts user's permissions. Must be a simple space-separated string with allowed scopes ['read', 'write']. -
summary_fields:
string
Title:
Summary fieldsRead Only:true -
token:
string
Title:
TokenRead Only:true -
type:
string
Title:
TypeRead Only:true -
url:
string
Title:
UrlRead Only:true -
user:
integer
Title:
UserRead Only:trueThe user representing the token owner