API 参考 / join-requests
POST /api/v1/projects/{projectId}/join-requests/{joinRequestId}/reject · rejectJoinRequest
需要 manage_project_members。只改申请状态、不碰成员关系,写审计。 驳回后申请人对该项目进入 rejectCooldownDays 天冷却期。 与批准共用同一把并发闸:只有仍处 pending 的申请能被驳回,否则 409。
鉴权:项目 API Token(Authorization: Bearer wfp_…)。详见 Agent 接入。
projectId(必填)joinRequestId(必填)noteid(必填)userId(必填)userEmail(必填)userDisplayNamestatus(必填)message(必填)createdAt(必填)expiresAt(必填)decidedBydecidedAtreviewNotegrantedRoleId403:Problem 错误响应404:Problem 错误响应409:Problem 错误响应curl -X POST "https://你的项目.workflow.games/api/v1/projects/{projectId}/join-requests/{joinRequestId}/reject" \
-H "Authorization: Bearer wfp_…" \
-H "content-type: application/json" \
--data '{"note":"示例文本"}'HTTP/1.1 200
{
"id": "018f3c2e-0000-7000-8000-000000000000",
"userId": "018f3c2e-0000-7000-8000-000000000000",
"userEmail": "[email protected]",
"status": "pending",
"message": "示例文本",
"createdAt": "示例文本",
"expiresAt": "示例文本"
}合同真值:OpenAPI 3.1(0.1.0)。
相关:Agent 接入指南 · 使用指南 · API 参考索引