# حذف رمز مستخدم بواسطة API

**URL:** https://meta.discourse.org/t/delete-user-avatar-by-api/154813
**Category:** Development
**Tags:** rest-api
**Created:** [14 يونيو 2020، 2:15م UTC](https://meta.discourse.org/t/delete-user-avatar-by-api/154813 "2020-06-14T14:15:16Z")
**Posts on this page:** 1
**Showing post:** 13

<div class="post-metadata">

### Author: ![blake](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/blake/32/157322_2.png) [@blake](https://meta.discourse.org/u/blake)
#### Post date: [23 يونيو 2020، 2:46م UTC](https://meta.discourse.org/t/delete-user-avatar-by-api/154813/13 "2020-06-23T14:46:56Z")

</div>

يجب تضمين `api_key` و `api_username` في رأس HTTP، لأن استخدامهما في معلمات الاستعلام أصبح [قديماً](https://meta.discourse.org/t/discourse-api-documentation/22706).

أعتقد أن هناك حماية في الكود تمنع حذف الصورة الرمزية بالخطأ إذا تم إغفال الحقل أو تركه فارغاً. على الأرجح ستحتاج إلى توفير رابط لصورة رمزية افتراضية لاستبدال الصورة الرمزية الحالية.

---

_[View the full topic](https://meta.discourse.org/t/delete-user-avatar-by-api/154813)._
