Skip to main content

Update policy delivery configuration

Update policy delivery configuration. PUT /api/openapi/v1/policy-delivery-configs/{policy_id}, scope admin.v1.expert-suites.manage.

  • Scope: admin.v1.expert-suites.manage
  • Permission: Manage expert suites
  • Action: manage
  • Endpoint: PUT/api/openapi/v1/policy-delivery-configs/{policy_id}
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. policy_type accepts skill_publish, connector_publish and expert_suite_publish, matching all three UI publish policy types. GET accepts at most 200 comma-separated UUIDs in policy_ids; absent configurations return auto_install=false and revision=0. PUT uses expected_revision. Enabling requires a finite, nonempty resource allowlist; disabling does not depend on IAM availability. Save the policy through the corresponding existing publish-policy operation, then call this operation to set auto-install. These remain separate writes.

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

Request body: required; Content-Type: application/json.
NameLocationTypeRequiredDescriptionExample
policy_idpathstring · uuidYespolicy id; format="uuid"-
auto_installbodybooleanYesauto install-
expected_revisionbodyinteger · int64YesRevision from the latest read; format="int64", minimum=0-
policy_typebodystringYespolicy type; enum=["skill_publish", "connector_publish", "expert_suite_publish"] Values: "connector_publish", "expert_suite_publish", "skill_publish"-

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
auto_installbooleanYesauto install-
modified_atstring · date-timeNomodified at; format="date-time"-
modified_bystringNomodified by-
policy_idstringYespolicy id-
policy_typestringYespolicy type; enum=["skill_publish", "connector_publish", "expert_suite_publish"] Values: "connector_publish", "expert_suite_publish", "skill_publish"-
revisioninteger · int64YesCurrent revision for concurrency control; format="int64"-

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. The existing expert-suites read/manage endpoint scope remains required for compatibility. For skill_publish, additionally grant admin.v1.skills.read for GET or admin.v1.skills.manage for PUT; for connector_publish, grant the corresponding admin.v1.connectors.read/manage scope. A grant for one resource never grants another.