Update authorization code shard settings
PUT
/api/admin/settings/code-shards
Code sample: Shell / cURL
curl --request PUT \ --url https://auth.example.com/api/admin/settings/code-shards \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "shards": 8, "skip_sync_check": true }'Stores a new authorization-code shard count after validating it remains synchronized with refresh-token shard configuration unless explicitly skipped.
Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ”Auth code 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, "skip_sync_check": true}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"}