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

# Modifie un contact

> Modifie un contact : numéro, nom, attributs



## OpenAPI

````yaml /api-reference/openapi.json patch /api/v1/contact-groups/{groupId}/contacts/{contactId}
openapi: 3.1.0
info:
  title: API DexNotify
  version: '1'
  description: >-
    SMS, e-mail, WhatsApp, notifications push, contacts et campagnes, par une
    seule API. Authentification par clé API dans l’en-tête `x-api-key`.
servers:
  - url: https://api.dexnotify.com
    description: Production et staging
security:
  - api-key: []
tags:
  - name: SMS
  - name: E-mail
  - name: WhatsApp
  - name: Contacts
  - name: Listes de contacts
  - name: Campagnes
  - name: Modèles e-mail
  - name: Automatisations
  - name: Notifications push
  - name: Campagnes push
  - name: Journal des messages
  - name: In-app
  - name: Live Activities
  - name: Utilisateurs et appareils
  - name: Segments
  - name: Modèles push
  - name: Événements
  - name: Statistiques
paths:
  /api/v1/contact-groups/{groupId}/contacts/{contactId}:
    patch:
      tags:
        - Listes de contacts
      summary: 'Modifie un contact : numéro, nom, attributs'
      operationId: ContactsController_update_v1
      parameters:
        - name: groupId
          required: true
          in: path
          schema:
            type: string
        - name: contactId
          required: true
          in: path
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                firstName:
                  anyOf:
                    - type: string
                      minLength: 1
                      maxLength: 120
                    - type: 'null'
                lastName:
                  anyOf:
                    - type: string
                      minLength: 1
                      maxLength: 120
                    - type: 'null'
                name:
                  anyOf:
                    - type: string
                      minLength: 1
                      maxLength: 120
                    - type: 'null'
                email:
                  anyOf:
                    - type: string
                      maxLength: 254
                    - type: 'null'
                phone:
                  type:
                    - string
                    - 'null'
                address:
                  anyOf:
                    - type: object
                      properties:
                        line:
                          type: string
                          minLength: 1
                          maxLength: 200
                        city:
                          type: string
                          minLength: 1
                          maxLength: 100
                        country:
                          type: string
                    - type: 'null'
                attributes:
                  type: object
                  propertyNames:
                    type: string
                    pattern: ^[A-Za-z_][A-Za-z0-9_]{0,31}$
                  additionalProperties:
                    type: string
                    maxLength: 200
                tags:
                  maxItems: 20
                  type: array
                  items:
                    type: string
                    minLength: 1
                    maxLength: 40
                subscriptions:
                  type: object
                  properties:
                    email:
                      type: string
                      enum:
                        - subscribed
                        - unsubscribed
                        - unknown
                    sms:
                      type: string
                      enum:
                        - subscribed
                        - unsubscribed
                        - unknown
      responses:
        '200':
          description: Contact modifié
      security:
        - api-key: []
components:
  securitySchemes:
    api-key:
      type: apiKey
      in: header
      name: x-api-key
      description: >-
        Clé API du projet, créée dans le dashboard (Développeurs › Clés API et
        SDK). Une clé `dxn_prod_` vise la production, une clé `dxn_stag_` le
        staging.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.