Authorization: Bearer ********************{
"name": "高风险审批策略",
"externalId": "high-risk-approval",
"definition": {
"allowTools": [],
"denyTools": [],
"riskLevel": "high",
"approval": "always"
}
}curl --location '/v1/policies' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "高风险审批策略",
"externalId": "high-risk-approval",
"definition": {
"allowTools": [],
"denyTools": [],
"riskLevel": "high",
"approval": "always"
}
}'{
"id": "id_example",
"externalId": "external_example",
"name": "示例名称",
"status": "active",
"draft": {
"id": "id_example",
"revision": 1,
"status": "draft",
"definition": {
"description": "示例内容",
"instructions": "示例内容",
"modelPolicy": {
"model": "示例值",
"effort": "low"
},
"skillVersionIds": [
"示例值"
],
"toolSetVersionIds": [
"示例值"
],
"policyVersionIds": [
"示例值"
]
},
"snapshot": {},
"createdAt": "2026-09-27T08:00:00.000Z",
"updatedAt": "2026-09-27T08:00:00.000Z",
"publishedAt": "2026-09-27T08:00:00.000Z"
},
"published": {
"id": "id_example",
"revision": 1,
"status": "draft",
"definition": {
"description": "示例内容",
"instructions": "示例内容",
"modelPolicy": {
"model": "示例值",
"effort": "low"
},
"skillVersionIds": [
"示例值"
],
"toolSetVersionIds": [
"示例值"
],
"policyVersionIds": [
"示例值"
]
},
"snapshot": {},
"createdAt": "2026-09-27T08:00:00.000Z",
"updatedAt": "2026-09-27T08:00:00.000Z",
"publishedAt": "2026-09-27T08:00:00.000Z"
},
"createdAt": "2026-09-27T08:00:00.000Z",
"updatedAt": "2026-09-27T08:00:00.000Z"
}