我是 Clockify 的新手,正在为我们的组织进行评估。我正在使用具有以下主体的创建项目 API:
{
"name": "aaaa My API Project",
"color": "#f44336",
"note": "This is project's note",
"billable": false,
"public": true,
"timeEstimate": {
"estimate": "PT2000H",
"type": "MANUAL"
}
}
我收到“201 Created”响应,并且可以在 Clockify UI 中看到该项目。问题是该项目是在没有注释和没有估计的情况下创建的,如响应正文中所示:
{
"id": "xxxxx",
"name": "aaaa My API Project",
"hourlyRate": {
"amount": 0,
"currency": "USD"
},
"costRate": null,
"clientId": "",
"workspaceId": "xxxxx",
"billable": false,
"memberships": [
{
"userId": "xxxxx",
"hourlyRate": null,
"costRate": null,
"targetId": "xxxxx",
"membershipType": "PROJECT",
"membershipStatus": "ACTIVE"
}
],
"color": "#f44336",
"estimate": {
"estimate": "PT0S",
"type": "AUTO"
},
"archived": false,
"duration": "PT0S",
"clientName": "",
"note": "",
"timeEstimate": {
"estimate": "PT0S",
"type": "AUTO",
"resetOption": null,
"active": false
},
"budgetEstimate": null,
"public": true,
"template": false
}
我还尝试在项目创建后进行 PATCH 并得到类似的响应。使用 PATCH 估计时同上。我不确定我错过了什么。非常感激任何的帮助。