Capacity estimate values API

Create estimate values for a capacity investment

POST /api/v1/capacity_investments/:id/estimate_values

Estimate 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.

Parameters
NameDescription
id *

Numeric ID of the capacity investment

estimate_values *

An array (or object) of estimate values to create/update.

Example request

POST/api/v1/capacity_investments/756888381/estimate_values

Example CURL command

curl "https://company.aha.io/api/v1/capacity_investments/756888381/estimate_values" -d '{"estimate_values":[{"team_id":949295028,"period_start":"2019-01-01","total":5},{"team_id":949295028,"period_start":"2019-01-01","total":10},{"team_id":563889676,"period_start":"2019-01-01","total":15},{"team_id":563889676,"period_start":"2019-01-01","total":20}]}' -X POST \
	-H "Authorization: Bearer 15b60d42d4bc417284a246ced6877b0bf13fb4aca415f7b55f7006bc3694a8ab" \
	-H "Content-Type: application/json" \
	-H "Accept: application/json"

Request

authorization: Bearer 15b60d42d4bc417284a246ced6877b0bf13fb4aca415f7b55f7006bc3694a8ab
contentType: application/json
accept: application/json

Request body

Response

Status: 200 OK
contentType: application/json; charset=utf-8

Response body

Sign up today!
Start your 30 day trial. No credit card required.
© 2021 Aha! Labs Inc.All rights reserved