Update challenge shard settings
PUT
/api/admin/settings/challenge-shards
Code sample: Shell / cURL
curl --request PUT \ --url https://auth.example.com/api/admin/settings/challenge-shards \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "shards": 8 }'Stores a new integer challenge shard count between 1 and 256 in AUTHRIM_CONFIG. Existing challenges keep their embedded routing.
Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ”Challenge shard count update.
Media type application/json
object
shards
required
integer
skip_sync_check
Only used by code shard updates when updating auth code and refresh token shards together.
boolean
key
additional properties
Example
{ "shards": 8}Responses
Section titled “ Responses ”Successful JSON response.
Media type application/json
object
success
boolean
shards
integer
note
string
key
additional properties
Example
{ "success": true, "shards": 8, "note": "Cache will refresh within 10 seconds. Changes affect new sessions only."}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"}