# צור תג מותאם אישית עם תמונה דרך ה-API

**URL:** <https://meta.discourse.org/t/create-a-custom-badge-with-an-image-through-the-api/210616>\
**Category:** Developers\
**Tags:** badges, rest-api, how-to\
**Created:** [1 בדצמבר,‏ 2021,‏ 12:14am UTC](https://meta.discourse.org/t/create-a-custom-badge-with-an-image-through-the-api/210616 "2021-12-01T00:14:48Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![mattdm](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mattdm/32/216484_2.png) [@mattdm](https://meta.discourse.org/u/mattdm)\
**Post date:** [5 בדצמבר,‏ 2021,‏ 7:41pm UTC](https://meta.discourse.org/t/create-a-custom-badge-with-an-image-through-the-api/210616/3 "2021-12-05T19:41:55Z")

</div>

In the original posting of this, I accidentally put the sha hash digest function inside a string, so that got set literally as the python code, not the digest. That seemed to still work, but _probably should actually be right instead_. I’m not sure what is checking that, but probably if you do this wrong the image will get marked as corrupt some point in the future. Anyway, I’ve edited the code above so it should be right. If you spot any other bugs, please let me know!

---

_[View the full topic](https://meta.discourse.org/t/create-a-custom-badge-with-an-image-through-the-api/210616)._
