Project estimate

Hi,
I’ve a problem to create a project with “Time Estimate” setting enabled. It’s a bug ? Follow body json used

{
“billable”: false,
“clientId”: “66ae2eb1ed798e0e337e0fba”,
“color”: “#FF0000”,
“estimate”: {
“estimate”: “PT3H”,
“type”: “MANUAL”
},
“timeEstimate”: {
“estimate”: “PT3H”,
“type”: “MANUAL”,
“resetOption”: null,
“active”: true,
“includeNonBillable”: true
},
“budgetEstimate”: null,
“estimateReset”: null,
“template”: false,
“public”: true,
“hourlyRate”: {
“amount”: 0,
“since”: “2020-01-01T00:00:00Z”
},
“isPublic”: true,
“memberships”: [
{
“hourlyRate”: {
“amount”: 0,
“since”: “2020-01-01T00:00:00Z”
},
“membershipStatus”: “PENDING”,
“membershipType”: “USERGROUP”,
“userId”: “6693d61951ffa171dedd36e4”
}
],
“name”: “Software Development 9”,
“note”: “”,
“tasks”: [
]
}

Hi @s.falasca

Currently, the estimate can’t be set from the project creation endpoint as the “active”: "true isn’t available for the estimate there.

Please try setting the estimate after creating the project with a patch request. After creating the project, run the Update project estimate call:
Method: PATCH:
“Headers”: “x-api-key” & “apikey” & “Content-Type” - “application/json”
URL: https://api.clockify.me/api/v1/workspaces/{workspaceId}/projects/{projectId}/estimate
Body:

{
  "timeEstimate": {
    "active": true,
    "estimate": "PT3H",
    "includeNonBillable": true,
    "type": "MANUAL"
  }
}

I hope this helps.