Capacity estimate values
Create estimate values for a capacity investment
Changed onEstimate value objects should include the following keys: team_id, period_start, and total. This endpoint uses an "upsert" flow, updating existing records, or creating new ones if they do not exist. Returns all updated and destroyed estimate values, including computed sums and ignored values.
post/capacity_investments/{id}/estimate_values
Request
- Base URLhttps://company.aha.io/api/v1
- Auth
- OAuth 2Authorization codehttps://{account-domain}.aha.io/oauth/authorizeToken URLhttps://{account-domain}.aha.io/oauth/token
- or HTTP bearer
- or API key in cookie session
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
idstring required
Id identifier
Request body
Example request
{
"estimate_value": {
"total": 20
}
}Response
Successful operation
Example response
{
"updated": [
{
"id": "6776881149487632203",
"team_id": 563889676,
"team_membership_id": null,
"period_start": "2019-01-01",
"total": 15,
"computed": false,
"ignored": false
},
{
"id": "6776881149489311818",
"team_id": 563889676,
"team_membership_id": null,
"period_start": null,
"total": 35,
"computed": true,
"ignored": false
},
{
"id": "6776881149490125878",
"team_id": null,
"team_membership_id": null,
"period_start": null,
"total": 50,
"computed": true,
"ignored": false
},
{
"id": "6776881149490529746",
"team_id": null,
"team_membership_id": null,
"period_start": "2019-01-01",
"total": 25,
"computed": true,
"ignored": false
},
{
"id": "6776881149490943142",
"team_id": 949295028,
"team_membership_id": null,
"period_start": "2019-01-01",
"total": 5,
"computed": false,
"ignored": false
},
{
"id": "6776881149492175407",
"team_id": null,
"team_membership_id": null,
"period_start": "2019-01-01",
"total": 5,
"computed": true,
"ignored": false
},
{
"id": "6776881149493726512",
"team_id": 563889676,
"team_membership_id": null,
"period_start": "2019-01-01",
"total": 20,
"computed": false,
"ignored": false
},
{
"id": "6776881149494705557",
"team_id": 949295028,
"team_membership_id": null,
"period_start": null,
"total": 15,
"computed": true,
"ignored": false
},
{
"id": "6776881149498133135",
"team_id": 949295028,
"team_membership_id": null,
"period_start": "2019-01-01",
"total": 10,
"computed": false,
"ignored": false
},
{
"id": "6776881149499236800",
"team_id": null,
"team_membership_id": null,
"period_start": "2019-01-01",
"total": 20,
"computed": true,
"ignored": false
}
],
"destroyed": []
}Changes
- info
endpoint added
- info