---
title: "PUT /api/v2/contacts/{id}/"
method: PUT
path: "/api/v2/contacts/{id}/"
tags: ["contacts"]
---

# PUT /api/v2/contacts/{id}/

`PUT /api/v2/contacts/{id}/`

Contact ViewSet.

## Path parameters

- `id` string, required

## Request body

- Contact — Contact serializer.
  - `pk` integer, required
  - `first_name` string
  - `last_name` string
  - `categories` integer[]
  - `emails` EmailAddress[], required
    - `pk` integer, required
    - `address` string, email, required
    - `type` 'home' | 'work' | 'other', required — * `home` - Home * `work` - Work * `other` - Other
  - `phone_numbers` PhoneNumber[]
    - `pk` integer, required
    - `number` string, required
    - `type` 'home' | 'work' | 'other' | 'main' | 'cell' | 'fax' | 'pager', required — * `home` - Home * `work` - Work * `other` - Other * `main` - Main * `cell` - Cellular * `fax` - Fax * `pager` - Pager
  - `company` string
  - `position` string
  - `address` string
  - `zipcode` string
  - `city` string
  - `country` string
  - `state` string
  - `note` string
  - `birth_date` string, date, nullable
  - `display_name` string

## Response `200`

- Contact — Contact serializer.
  - `pk` integer, required
  - `first_name` string
  - `last_name` string
  - `categories` integer[]
  - `emails` EmailAddress[], required
    - `pk` integer, required
    - `address` string, email, required
    - `type` 'home' | 'work' | 'other', required — * `home` - Home * `work` - Work * `other` - Other
  - `phone_numbers` PhoneNumber[]
    - `pk` integer, required
    - `number` string, required
    - `type` 'home' | 'work' | 'other' | 'main' | 'cell' | 'fax' | 'pager', required — * `home` - Home * `work` - Work * `other` - Other * `main` - Main * `cell` - Cellular * `fax` - Fax * `pager` - Pager
  - `company` string
  - `position` string
  - `address` string
  - `zipcode` string
  - `city` string
  - `country` string
  - `state` string
  - `note` string
  - `birth_date` string, date, nullable
  - `display_name` string

---

[API](https://skmtc.net/modoboa/apis/modoboa-api.md) · [All operations](https://skmtc.net/modoboa/apis/modoboa-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/modoboa/modoboa-api/versions/01f8eaf44cc7/schema)
