# API - Cómo revocar una insignia de un usuario

**URL:** <https://meta.discourse.org/t/api-how-to-revoke-badge-from-a-user/45560>\
**Category:** Product Support\
**Created:** [11 Junio, 2016 07:13 UTC](https://meta.discourse.org/t/api-how-to-revoke-badge-from-a-user/45560 "2016-06-11T07:13:24Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![jefflau](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jefflau/32/121720_2.png) [@jefflau](https://meta.discourse.org/u/jefflau)\
**Post date:** [11 Junio, 2016 07:13 UTC](https://meta.discourse.org/t/api-how-to-revoke-badge-from-a-user/45560/1 "2016-06-11T07:13:24Z")

</div>

Hi guys,

I’ve been trying to reverse engineer the revoke badge API endpoint, but I can’t figure out how its done. When i’m looking at the XHR requests on the inspector, I can’t figure out how the API knows what user/badge I want deleted. I’m not super experienced with hacking APIs, so I’m not sure if I’m missing some additional data, but all the parts of the API i’ve reverse engineered had some kind of form data attached to it.

This is what I’m seeing:

 ![](https://global.discourse-cdn.com/meta/original/3X/7/c/7c4b126fee5cdbc3361645049a8687183a5eef73.png)

As far as I can see it’s a `DELETE` to the url `http://testforum.daohub.org/user_badges/36`, different badges have different numbers, but I’m not sure how it knows which user to delete it from. If I add and remove the same badge, the number is different the second time round so it doesn’t seem to be using the badgeID for it either.

Any help would be appreciated.

Thanks.

---

_[View the full topic](https://meta.discourse.org/t/api-how-to-revoke-badge-from-a-user/45560)._
