core_tokens_update
PUT/api/v3//core/tokens/:identifier/
Token Viewset
Request
Path Parameters
- application/json
Body
required
Possible values: non-empty
Objects that are managed by authentik. These objects are created and updated automatically. This flag only indicates that an object can be overwritten by migrations. You can still modify the objects via the API, but expect changes to be overwritten in a later update.
Possible values: non-empty
and <= 255 characters
, Value must match regular expression ^[-a-zA-Z0-9_]+$
Possible values: [verification
, api
, recovery
, app_password
]
Responses
- 200
- 400
- 403
- application/json
- Schema
- Example (from schema)
Schema
Objects that are managed by authentik. These objects are created and updated automatically. This flag only indicates that an object can be overwritten by migrations. You can still modify the objects via the API, but expect changes to be overwritten in a later update.
Possible values: <= 255 characters
, Value must match regular expression ^[-a-zA-Z0-9_]+$
Possible values: [verification
, api
, recovery
, app_password
]
user_obj
object
required
{
"pk": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"managed": "string",
"identifier": "string",
"intent": "verification",
"user": 0,
"user_obj": {
"pk": 0,
"username": "string",
"name": "string",
"is_active": true,
"last_login": "2024-09-27T14:26:18.090Z",
"is_superuser": true,
"groups": [
"3fa85f64-5717-4562-b3fc-2c963f66afa6"
],
"groups_obj": [
{
"pk": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"num_pk": 0,
"name": "string",
"is_superuser": true,
"parent": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"parent_name": "string",
"attributes": {}
}
],
"email": "[email protected]",
"avatar": "string",
"attributes": {},
"uid": "string",
"path": "string",
"type": "internal",
"uuid": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
},
"description": "string",
"expires": "2024-09-27T14:26:18.091Z",
"expiring": true
}
- application/json
- Schema
- Example (from schema)
Schema
{
"non_field_errors": [
"string"
],
"code": "string"
}
- application/json
- Schema
- Example (from schema)
Schema
{
"detail": "string",
"code": "string"
}
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L -X PUT '/api/v3/core/tokens/:identifier/' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"managed": "string",
"identifier": "string",
"intent": "verification",
"user": 0,
"description": "string",
"expires": "2024-09-27T14:26:17.884Z",
"expiring": true
}'