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}
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.
| Name | Location | Type | Required | Description | Example |
|---|---|---|---|---|---|
policy_id | path | string · uuid | Yes | policy id; format="uuid" | - |
auto_install | body | boolean | Yes | auto install | - |
expected_revision | body | integer · int64 | Yes | Revision from the latest read; format="int64", minimum=0 | - |
policy_type | body | string | Yes | policy type; enum=["skill_publish", "connector_publish", "expert_suite_publish"] Values: "connector_publish", "expert_suite_publish", "skill_publish" | - |
Response statuses
| HTTP status | Trigger | Response structure | Client action |
|---|---|---|---|
200 | Request succeeded | See “Response” on this page | Read the response. |
default | Other authentication, authorization, validation or dependency errors | See “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
| Name | Type | Required | Description | Example |
|---|---|---|---|---|
auto_install | boolean | Yes | auto install | - |
modified_at | string · date-time | No | modified at; format="date-time" | - |
modified_by | string | No | modified by | - |
policy_id | string | Yes | policy id | - |
policy_type | string | Yes | policy type; enum=["skill_publish", "connector_publish", "expert_suite_publish"] Values: "connector_publish", "expert_suite_publish", "skill_publish" | - |
revision | integer · int64 | Yes | Current revision for concurrency control; format="int64" | - |