Skip to main content

Get input placeholder configuration

Get input placeholder configuration. GET /api/openapi/v1/personalization/configs/input-placeholder, scope admin.v1.personalization.read.

  • Scope: admin.v1.personalization.read
  • Permission: Read Personalization
  • Action: read
  • Endpoint: GET/api/openapi/v1/personalization/configs/input-placeholder
Use Authorization: Bearer \<API_KEY\>. The application must have subject_scope={"mode":"all"}; restricted scopes return 403. Scopes are independently granted. Do not cache responses. Reuses the UI personalization service. Publication replaces the entire section and requires its current expected_revision; stale revisions return 409. Read and preserve other homepage fields when changing welcome messages. For a sign-in background, create a session with media_type and size_bytes, upload directly using the returned URL, method and headers, then publish login config.backgroundUploadId referencing upload_id. PNG/JPEG only, at most 5 MiB and at least 720×720. Sessions are bound to the organization and uploader and require Idempotency-Key. Only login, homepage and input-placeholder are exposed.

Common request headers

Apply the “Authentication and headers” section in “Configure the QwenWork console through APIs”: Authorization is required and X-Request-Id is optional. See this page for the required scope. Whether Idempotency-Key applies and is required is specified in this page’s request parameters; a tracing identifier does not replace an idempotency key.

Request parameters

No request parameters.

Response statuses

HTTP statusTriggerResponse structureClient action
200Request succeededSee “Response” on this pageRead the response.
defaultOther authentication, authorization, validation or dependency errorsSee “General error” in “Configure the QwenWork console through APIs”Handle the status and code; verify the result and idempotency requirements before retrying writes.

Response

Content-Type: application/json
NameTypeRequiredDescriptionExample
configobjectYesSection configuration; initially {}-
product_editionstringNoProduct deployment edition; enum=["vpc", "k8s"] Values: "k8s", "vpc"-
publication_idstring | nullYesPublication ID; null before the first publication-
published_atstring · date-time | nullYesPublication time; null before the first publication; format="date-time"-
revisioninteger · int64YesCurrent revision for concurrency control; format="int64"-
sectionstringYesPersonalization section-

config

FieldTypeRequiredDescription
generatingobjectNoGenerating-state placeholder
normalobjectNoIdle-state placeholder

config.generating

FieldTypeRequiredDescription
enstringNoEnglish text
zh-CNstringNoSimplified Chinese text

config.normal

FieldTypeRequiredDescription
enstringNoEnglish text
zh-CNstringNoSimplified Chinese text

Errors and retries

Existing UI error codes and validation are preserved. 401/403 indicate authentication or authorization failure; 409 requires rereading before retry; 413 indicates an oversized request; 400/422 indicate invalid input; 503 indicates an unavailable dependency. The response and machine contract are authoritative. Retry idempotent creates with the same Idempotency-Key and payload.

Config fields and validation boundaries

normal and generating each map zh-CN and en to strings. The UI requires content and limits each input to 128 characters. Missing values use localized product placeholders; initial stored config is {}. The server retains JSON-object validation without adding the UI length or required-content rules. The following is a config fragment, not a complete request or response.