How to Update Estimates with ZenHub API

Tadashi Shigeoka ·  Sat, December 5, 2020

I’ll introduce how to update Estimates using the ZenHub API.

ZenHub

Background: Want to Bulk Update Estimates with ZenHub API

After bulk creating GitHub issues, I wanted to bulk set Estimates using the ZenHub API, which is what this article covers.

Updating Estimates with ZenHub API

Use the ZenHub API PUT /p1/repositories/:repo_id/issues/:issue_number/estimate to set Estimates.

ZENHUB_API_TOKEN_HEADER='X-Authentication-Token: xxxxxx'

curl -X PUT \\
-H ${ZENHUB_API_TOKEN_HEADER} \\
-H 'Content-Type: application/json' \\
https://api.zenhub.com/p1/repositories/:repo_id/issues/:repo_id/estimate \\
-d '{ "estimate": 8 }'

That’s all from the Gemba on updating Estimates with the ZenHub API.