update_contact
Modify an existing LibreDesk contact's name, email, phone, country, or avatar by contact ID. Requires contacts:write permission; at least an email or phone number must be set.
Instructions
Update Contact
Requires the contacts:write permission.
PUT /api/v1/contacts/{id}
Tags: Contacts
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | (path parameter) | |
| No | (body) Contact's email address. Required when `phone_number` is empty. Send an empty value or the string `null` to clear it. | ||
| files | No | (body, file) New avatar image file to upload (max 10MB) — pass a file path inside the directory set by LIBREDESK_MCP_UPLOAD_DIR (uploads are refused while it is unset); the server will upload its contents. | |
| country | No | (body) Contact's country as an ISO 3166-1 alpha-2 code. Send an empty value or the string `null` to clear it. | |
| last_name | No | (body) Contact's last name | |
| avatar_url | No | (body) URL of the contact's avatar image. Send an empty value or the string `null` to remove the avatar, or the existing value to keep it. | |
| first_name | Yes | (body) Contact's first name | |
| phone_number | No | (body) Contact's phone number. Required when `email` is empty. Send an empty value or the string `null` to clear it. | |
| phone_number_country_code | No | (body) ISO country code. Send an empty value or the string `null` to clear it. |