---
title: "Updates a contact with consent records."
method: PUT
path: "/v2/contacts/{id}/with-consent"
tags: ["ApiContact"]
---

# Updates a contact with consent records.

`PUT /v2/contacts/{id}/with-consent`

## Path parameters

- `id` integer, required

## Request body

- ApiContactWithConsent
  - `contact` ApiContact
    - `id` integer
    - `email` string, required
    - `optInType` 'Unknown' | 'Single' | 'Double' | 'VerifiedDouble' | 'NotAvailableInThisVersion'
    - `emailType` 'PlainText' | 'Html' | 'NotAvailableInThisVersion'
    - `dataFields` ApiContactData[], nullable
      - `key` string, nullable
      - `value` unknown
    - `status` 'Subscribed' | 'Unsubscribed' | 'SoftBounced' | 'HardBounced' | 'IspComplained' | 'MailBlocked' | 'PendingOptIn' | 'DirectComplaint' | 'Deleted' | 'SharedSuppression' | 'Suppressed' | 'NotAllowed' | 'DomainSuppression' | 'NoMxRecord' | 'NotAvailableInThisVersion'
  - `consentFields` ApiConsent[], nullable
    - `id` string, nullable
    - `fields` ApiContactData[], nullable
      - `key` string, nullable
      - `value` unknown

## Response `200`

- ApiContactWithConsent
  - `contact` ApiContact
    - `id` integer
    - `email` string, required
    - `optInType` 'Unknown' | 'Single' | 'Double' | 'VerifiedDouble' | 'NotAvailableInThisVersion'
    - `emailType` 'PlainText' | 'Html' | 'NotAvailableInThisVersion'
    - `dataFields` ApiContactData[], nullable
      - `key` string, nullable
      - `value` unknown
    - `status` 'Subscribed' | 'Unsubscribed' | 'SoftBounced' | 'HardBounced' | 'IspComplained' | 'MailBlocked' | 'PendingOptIn' | 'DirectComplaint' | 'Deleted' | 'SharedSuppression' | 'Suppressed' | 'NotAllowed' | 'DomainSuppression' | 'NoMxRecord' | 'NotAvailableInThisVersion'
  - `consentFields` ApiConsent[], nullable
    - `id` string, nullable
    - `fields` ApiContactData[], nullable
      - `key` string, nullable
      - `value` unknown

---

[API](https://skmtc.net/dotdigital/apis/apiconnector-com.md) · [All operations](https://skmtc.net/dotdigital/apis/apiconnector-com/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/dotdigital/apiconnector-com/revisions/109c0537cf77/schema)
