MethodPathSummaryAuth
GET/v1/admin/doh-settingsRead the DoH service settingsSession
PUT/v1/admin/doh-settingsUpdate the DoH service settingsSession

Contract file:api/control-doh-settings.openapi.yaml

Operation details

GET /v1/admin/doh-settings

Read the DoH service settings

operationId
getPlatformDoHSettings
Auth
  • Session: the Bearer session of a signed-in control plane user, used by the customer in their own control plane; a plugin must never ask for it.
Required permissions

All of:system_configuration.read

Responses

getPlatformDoHSettings Responses
StatusDescription
200Current settings

Fields:schema: string revision: integer(int64) value: Settings host_site_id: string(uuid) | null(uuid) token_set: boolean token_created_at: string(date-time) | null(date-time) token?: string nodes_in_range: integer nodes_declaring: integer updated_at: string(date-time)

401Unauthenticated
403Permission denied
500Unexpected internal failure
503Settings storage is unavailable

What to do on failure

  • 401 Check the credential format and whether it expired or was rotated.
  • 403 Check the key scopes, the owner’s current permissions and the tenant scope; never switch to a more privileged account.
  • 500 Outcome unknown: read back by ID or list first, then decide whether to retry with the original Idempotency-Key.
  • 503 A dependency is unavailable: retry later with the original Idempotency-Key.

↑ Back to list

PUT /v1/admin/doh-settings

Update the DoH service settings

operationId
updatePlatformDoHSettings
Auth
  • Session: the Bearer session of a signed-in control plane user, used by the customer in their own control plane; a plugin must never ask for it.
Required permissions

All of:system_configuration.manage

Parameters

updatePlatformDoHSettings Parameters
NameInTypeRequiredDescription
If-MatchheaderstringYes—
X-Request-IDheaderstringNo—

Request body

application/json · Required:Yes

updatePlatformDoHSettings Request body
NameTypeRequiredDescription
valueSettingsYes—
rotate_tokenbooleanNoGenerate a new access token; required when an auth mode is chosen and none exists.

Responses

updatePlatformDoHSettings Responses
StatusDescription
200Saved settings

Fields:schema: string revision: integer(int64) value: Settings host_site_id: string(uuid) | null(uuid) token_set: boolean token_created_at: string(date-time) | null(date-time) token?: string nodes_in_range: integer nodes_declaring: integer updated_at: string(date-time)

400Validation error or invalid If-Match
401Unauthenticated
403Permission denied
409Revision conflict
500Unexpected internal failure
503Settings storage is unavailable

What to do on failure

  • 400 Fix the parameters or body per the field list; do not retry unchanged.
  • 401 Check the credential format and whether it expired or was rotated.
  • 403 Check the key scopes, the owner’s current permissions and the tenant scope; never switch to a more privileged account.
  • 409 Read the current state first; a retry of the same operation keeps the original Idempotency-Key and body.
  • 500 Outcome unknown: read back by ID or list first, then decide whether to retry with the original Idempotency-Key.
  • 503 A dependency is unavailable: retry later with the original Idempotency-Key.

↑ Back to list