Skip to content

Update revocation shard config

PUT
/api/admin/settings/revocation-shards
Code sample: Shell / cURL
curl --request PUT \
--url https://auth.example.com/api/admin/settings/revocation-shards \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "shards": 16, "updatedBy": "admin-api" }'

Creates a new token revocation shard generation and updates the legacy shard count key for compatibility.

Media type application/json
object
shards
required
integer
>= 1 <= 256
updatedBy
string
key
additional properties
Example
{
"shards": 16,
"updatedBy": "admin-api"
}

Revocation shard configuration updated.

Media type application/json
object
success
boolean
previousGeneration
integer
previousShardCount
integer
newGeneration
integer
newShardCount
integer
note
string
warning
string
key
additional properties
Example
{
"success": true,
"previousGeneration": 1,
"previousShardCount": 8,
"newGeneration": 2,
"newShardCount": 16,
"note": "New generation created. New tokens will use embedded shard info. Existing tokens will continue to route correctly via previousGenerations lookup."
}

Error response.

Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{
"error": "example",
"message": "example",
"error_description": "example"
}

Error response.

Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{
"error": "example",
"message": "example",
"error_description": "example"
}

Error response.

Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{
"error": "example",
"message": "example",
"error_description": "example"
}

Error response.

Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{
"error": "example",
"message": "example",
"error_description": "example"
}

Error response.

Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{
"error": "example",
"message": "example",
"error_description": "example"
}