---
title: "Tamloot — עדכון איש קשר"
description: "עדכון איש קשר: פרמטרים, דוגמאות בקשה ומבני תשובות עבור PATCH /v1/contacts/{contact_id}."
canonical: "https://tamloot.cc/he/docs/developers/api-reference/update-contact"
last-updated: "2026-10-18"
---

# עדכון איש קשר

`PATCH /v1/contacts/{contact_id}`

שלחו את מפתח ה-API בכותרת `Authorization: Bearer $TAMLOOT_API_KEY`. ניתן לקרוא רק מידע שגלוי לבעל המפתח.

מבוסס על [מפרט OpenAPI שפורסם](https://tamloot.cc/openapi.json). שמות המבנים ומזהי הקוד מוצגים בדיוק כפי שהם מוגדרים ב-API.

## פרמטרים

| פרמטר | מיקום | חובה | סוג | מגבלות |
| --- | --- | --- | --- | --- |
| `contact_id` | path | כן | string (uuid) | — |

## גוף הבקשה

```json
{
  "type": "object",
  "additionalProperties": false,
  "minProperties": 1,
  "properties": {
    "full_name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200
    },
    "email": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 254,
      "pattern": "^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$"
    },
    "phone": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 50
    }
  }
}
```

## דוגמאות בקשה

```bash
curl "https://api.tamloot.cc/v1/contacts/00000000-0000-4000-8000-000000000000" \
  --request PATCH \
  --header "Authorization: Bearer $TAMLOOT_API_KEY" \
  --header "Content-Type: application/json" \
  --data '{"full_name":"Maya Cohen"}'
```

```javascript
const response = await fetch("https://api.tamloot.cc/v1/contacts/00000000-0000-4000-8000-000000000000", {
  "method": "PATCH",
  "headers": {
    "Authorization": `Bearer ${process.env.TAMLOOT_API_KEY}`,
    "Content-Type": "application/json"
  },
  "body": "{\"full_name\":\"Maya Cohen\"}"
});
if (!response.ok) throw new Error('HTTP ' + response.status);
const result = await response.json();
```

## תשובות

| קוד | משמעות |
| --- | --- |
| 200 | הבקשה הצליחה |
| 401 | מפתח API חסר או לא תקין |
| 403 | אין הרשאת גישה |
| 404 | הרשומה לא נמצאה או אינה גלויה לחשבון הזה |
| 409 | אימייל כפול, איש קשר בארכיון או שימוש חוזר במפתח לבקשה אחרת |
| 422 | פרמטרים לא תקינים בבקשה |
| 429 | חריגה ממגבלת הקצב; המתינו לפי Retry-After |
| 503 | הכתיבה אינה זמינה זמנית |

### מבנה תשובה מוצלחת

```json
{
  "type": "object",
  "required": [
    "data"
  ],
  "properties": {
    "data": {
      "type": "object"
    }
  }
}
```

### מבנה תשובת שגיאה

```json
{
  "type": "object",
  "required": [
    "error"
  ],
  "properties": {
    "error": {
      "type": "object",
      "required": [
        "code",
        "message"
      ],
      "properties": {
        "code": {
          "type": "string",
          "description": "HTTP status code as a string, e.g. \"404\""
        },
        "message": {
          "type": "string"
        }
      }
    }
  }
}
```

### כותרות תשובה

```json
{
  "RateLimit-Limit": {
    "description": "Requests allowed per one-second window.",
    "schema": {
      "type": "integer"
    }
  },
  "RateLimit-Policy": {
    "description": "The rate-limit policy, as `<limit>;w=<window seconds>`.",
    "schema": {
      "type": "string"
    }
  }
}
```

עברו ל[התחלה מהירה](/he/docs/developers/quickstart) להגדרת מפתח API, או ל[סקירת ה-API](/he/docs/developers/api) למגבלות קצב וניהול גרסאות.

## קישורים נוספים

- [Tamloot](https://tamloot.cc/he)
- [כל המדריכים](https://tamloot.cc/he/docs)
- [llms.txt](https://tamloot.cc/docs/llms.txt)
- [Sitemap](https://tamloot.cc/sitemaps/sitemap.xml)
