core_tokens_set_key_create
POST/api/v3//core/tokens/:identifier/set_key/
Set token key. Action is logged as event. authentik_core.set_token_key
permission
is required.
Request
Path Parameters
identifier stringrequired
- application/json
Body
required
key stringrequired
Possible values: non-empty
Responses
- 204
- 400
- 403
- 404
Successfully changed key
Missing key
- application/json
- Schema
- Example (from schema)
Schema
detail stringrequired
code string
{
"detail": "string",
"code": "string"
}
Token not found or expired
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L -X POST '/api/v3/core/tokens/:identifier/set_key/' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"key": "string"
}'