# save()

Canonical URL: https://developers.iagenify.com/ar/sdk/ref/mail/contacts/save/
Language: ar

`api.mail.contacts.save({ address, name?, image? }) → Promise<Contact>`

ينشئ أو يغير a اتصال صورة إلى الحساب s نفسه تخزين و أيّ شئ موجود على حقل.

Status: creates or replaces · image: null keeps the name · counted in the quota

```javascript
await api.mail.contacts.save({
  address: "fedy@example.net",
  name: "Fedy",
  image: { data: bytes, type: "image/jpeg" },
});

await api.mail.contacts.save({ address: "fedy@example.net", image: null });   // drop the photo, keep the name
```

| Name | Type | Requirement | Description |
| --- | --- | --- | --- |
| `address` | string | مطلوب | المراسل والمفتاح |
| `name` | string |  | ما الذي يجب أن تظهره |
| `image` | object|null |  | `{ data, type }`. `null` يزيل الصورة ويبقي البقية |

## يربح على شعار {#wins}

> **الشعار هو علامة الشركة؛ صورة الشخص**
>
> وهذا هو السبب الرئيسي لوجود دفتر العناوين. فشعار المجال هو الصحيح لمنظمة ما وخطأ لشخص ما - وفي مجال استهلاكي سيكون شعار مقدم الخدمات لكل واحد منهم.

## (الـ (بالمُت) هي حساب الحساب {#storage}

مخزنة في مخزن جسمها، مرئية في قائمة، محسوبة في حصتها، قابلة للإلغاء. لا يرسل أي شيء إلى أي مكان آخر لمعرفة من يكتب إلى الزبون.

## يستعاض عن العنوان {#replaces}

توفير عنوان موجود يغيره - وتجاهل حقل ما يتركه كما كان، باستثناء `image: null`التي تزيل الصورة عمداً

## جديد جديد جديد جديد جديد عنوان جديد {#new-address}

هذا ما يُنهي المُخابئ القديم يتوقف عن الرجوع إليه

- [remove()](/ar/sdk/ref/mail/contacts/remove): -تُحذف واحدة .
- [mailbox.update()](/ar/sdk/ref/mailbox/update): صورة لعناوينك الخاصة

```python
api.mail.contacts.save(
    address="fedy@example.net",
    name="Fedy",
    image={"data": jpeg_bytes, "type": "image/jpeg"},
)

api.mail.contacts.save(address="fedy@example.net", image=None)   # drop the photo, keep the name
```
