update_contact
Modify contact details in Apollo.io's B2B sales platform to maintain accurate prospect information for sales operations.
Instructions
Update an existing contact's information in Apollo.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Contact ID | |
| first_name | No | First name | |
| last_name | No | Last name | |
| No | Email address | ||
| title | No | Job title | |
| linkedin_url | No | LinkedIn URL |
Implementation Reference
- src/index.ts:1109-1122 (handler)The core handler function for the 'update_contact' tool. It extracts the contact ID and update data from arguments, performs a PUT request to the Apollo API endpoint `/contacts/${id}`, retrieves the updated contact, and returns a structured response with a success message containing the contact's ID and name.private async updateContact(args: any) { const { id, ...updateData } = args; const response = await this.axiosInstance.put(`/contacts/${id}`, updateData); const contact = response.data.contact; return { content: [ { type: "text", text: `Contact updated successfully!\nID: ${contact.id}\nName: ${contact.first_name} ${contact.last_name}`, }, ], }; }
- src/index.ts:482-515 (registration)Registration of the 'update_contact' tool in the getTools() method's array, including name, description, and detailed input schema defining parameters like id (required), first_name, last_name, email, title, linkedin_url.{ name: "update_contact", description: "Update an existing contact's information in Apollo.", inputSchema: { type: "object", properties: { id: { type: "string", description: "Contact ID", }, first_name: { type: "string", description: "First name", }, last_name: { type: "string", description: "Last name", }, email: { type: "string", description: "Email address", }, title: { type: "string", description: "Job title", }, linkedin_url: { type: "string", description: "LinkedIn URL", }, }, required: ["id"], }, },
- src/index.ts:90-91 (registration)Dispatch case in the tool request handler switch statement that routes 'update_contact' calls to the updateContact method.case "update_contact": return await this.updateContact(args);
- src/index.ts:485-514 (schema)Input schema for the 'update_contact' tool, specifying the object structure with properties for updating contact details and requiring the 'id' field.inputSchema: { type: "object", properties: { id: { type: "string", description: "Contact ID", }, first_name: { type: "string", description: "First name", }, last_name: { type: "string", description: "Last name", }, email: { type: "string", description: "Email address", }, title: { type: "string", description: "Job title", }, linkedin_url: { type: "string", description: "LinkedIn URL", }, }, required: ["id"], },