> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ravan.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Update Contact

> Update Contact.

### Authorizations

<ParamField header="X-Api-Key" type="string" required>
  Your Agni API key used to authenticate the request. Pass it in the `X-Api-Key` header. Find or rotate it from your Ravan AI account settings.
</ParamField>

***

### Path Parameters

<ParamField path="id" type="string" required>
  The unique ID of the resource in the path. Use the ID returned by the related create or list endpoint.
</ParamField>

***

### Body

<ParamField body="first_name" type="string">
  The contact first name.
</ParamField>

<ParamField body="last_name" type="string">
  The contact last name.
</ParamField>

<ParamField body="email" type="string">
  The contact email address. Use a valid email format such as `alex@example.com`.
</ParamField>

<ParamField body="phone" type="string">
  The contact phone number in E.164 format. Example: `+14157774444`.
</ParamField>

<ParamField body="company" type="string">
  The contact company or organization name.
</ParamField>

<ParamField body="metadata" type="object">
  Custom key-value data to attach to the resource. Use this for IDs or attributes from your own systems.
</ParamField>

***

### Response

<ResponseField name="success" type="boolean">
  Whether the request succeeded.
</ResponseField>

<ResponseField name="message" type="string">
  Human-readable status message.
</ResponseField>

<ResponseField name="data" type="object">
  Updated contact object.
</ResponseField>


## OpenAPI

````yaml PATCH /api/v1/contacts/{id}
openapi: 3.0.1
info:
  title: Agni API
  version: 1.0.0
  description: >-
    Agni API for managing agents, tools, widget settings, telephony, and
    integrations.
servers:
  - url: https://api.ravan.ai
security:
  - X-Api-Key: []
tags:
  - name: AgentService
  - name: AgentToolService
  - name: WidgetSettingsService
  - name: PhoneService
  - name: AppointmentService
  - name: GHLService
  - name: CalComService
  - name: CampaignService
  - name: ContactService
  - name: CallingService
  - name: RAGService
  - name: ModelService
  - name: HealthService
paths:
  /api/v1/contacts/{id}:
    patch:
      tags:
        - ContactService
      summary: Update Contact
      operationId: UpdateContact
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Contact ID
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateContactRequest'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetContactResponse'
components:
  schemas:
    CreateContactRequest:
      type: object
      properties:
        first_name:
          type: string
          description: First name
        last_name:
          type: string
          description: Last name
        email:
          type: string
          description: Email address
        phone:
          type: string
          description: Phone number
        company:
          type: string
          description: Company name
        metadata:
          type: object
          description: Custom metadata
    GetContactResponse:
      type: object
      properties:
        success:
          type: boolean
        message:
          type: string
        data:
          $ref: '#/components/schemas/Contact'
    Contact:
      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
        phone:
          type: string
          description: Phone number
        company:
          type: string
          description: Company name
        metadata:
          type: object
          description: Custom metadata
        created_at:
          type: string
          description: Creation timestamp
        updated_at:
          type: string
          description: Last update timestamp
  securitySchemes:
    X-Api-Key:
      type: apiKey
      in: header
      name: X-Api-Key

````