Add contact
Add a contact to an address book with name, company, emails and phones.
POST https://cotlet.dev/api/v1/nextcloud/contacts
write Confirm
Creates one contact in an address book. A name or an email is required. Run search_contacts first, because adding a person who exists creates a second card. By default you confirm each call; you can switch that off for this tool.
Parameters
| Name | Type | Description |
|---|---|---|
| name string | string | Full name. |
| company string | string | Company. |
| emails array | array | Email addresses. |
| phones array | array | Phone numbers. |
| address_book string | string | Address book name. Default: 'contacts'. |
Request
curl -X POST https://cotlet.dev/api/v1/nextcloud/contacts \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("nextcloud", "add_contact") const result = await cotlet.call('nextcloud', 'add_contact'); cotlet call nextcloud add_contact Example response
{
"contact_id": "e18a52b4-9c07-4f3d-a6b1-0d2c7e5f8a63",
"name": "Tom Becker",
"address_book": "contacts",
"status": "created"
}