API 参考 / project-config
PUT /api/v1/projects/{projectId}/config · updateProjectConfig
整份覆盖项目配置。需要 manage_project_settings。写命令在 TenantTx 事务内产 ChangeSet + project_config.updated Event(payload 带 changedFields from/to)。
鉴权:项目 API Token(Authorization: Bearer wfp_…)。详见 Agent 接入。
projectId(必填)modules(必填)departments(必填)fieldLabels(必填)fieldLabels.requirementsfieldLabels.workfieldLabels.bugsfieldLabels.milestonesaiEnabled(必填)feishuWebhookUrlclearFeishuWebhookmodules(必填)departments(必填)fieldLabels(必填)fieldLabels.requirementsfieldLabels.workfieldLabels.bugsfieldLabels.milestonesaiEnabled(必填)feishuWebhookConfigured401:Problem 错误响应403:Problem 错误响应422:Problem 错误响应curl -X PUT "https://你的项目.workflow.games/api/v1/projects/{projectId}/config" \
-H "Authorization: Bearer wfp_…" \
-H "content-type: application/json" \
--data '{"modules":["示例文本"],"departments":["示例文本"],"fieldLabels":{"requirements":"示例文本","work":"示例文本","bugs":"示例文本"},"aiEnabled":true}'HTTP/1.1 200
{
"modules": [
"示例文本"
],
"departments": [
"示例文本"
],
"fieldLabels": {
"requirements": "示例文本",
"work": "示例文本",
"bugs": "示例文本"
},
"aiEnabled": true
}合同真值:OpenAPI 3.1(0.1.0)。
相关:Agent 接入指南 · 使用指南 · API 参考索引