Authorization: Bearer ********************{
"name": "发票审核",
"externalId": "invoice-review",
"definition": {
"responsibility": "审核发票",
"instructions": "核对供应商与金额",
"inputSchema": {
"type": "object"
},
"outputSchema": {
"type": "object"
},
"knowledgeRefs": [],
"toolSetVersionIds": [],
"policyVersionIds": []
}
}curl --location '/v1/skills' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "发票审核",
"externalId": "invoice-review",
"definition": {
"responsibility": "审核发票",
"instructions": "核对供应商与金额",
"inputSchema": {
"type": "object"
},
"outputSchema": {
"type": "object"
},
"knowledgeRefs": [],
"toolSetVersionIds": [],
"policyVersionIds": []
}
}'{
"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"
}