---
title: "Update a profile"
method: PATCH
path: "/cdp/{connection_id}/profile/{id}"
tags: ["cdp", "profile"]
---

# Update a profile

`PATCH /cdp/{connection_id}/profile/{id}`

## Request

- Base URL: `http://api.unified.to`
- URL: `http://api.unified.to/cdp/{connection_id}/profile/{id}`
- Auth: API key in header `authorization`

## Path parameters

- `connection_id` string, required
- `id` string, required

## Query parameters

- `fields` string[]
- `raw` string

## Request body

- CdpProfile
  - `id` string: Unique identifier for this profile object
  - `created_at` string, date-time: The date that this profile object was created (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
  - `updated_at` string, date-time: The last date that this profile object was updated (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
  - `name` string: The full name of the profile
  - `first_name` string: The first name of the profile
  - `last_name` string: The last name of the profile
  - `email` string: The primary email address of the profile
  - `telephone` string: The primary telephone number of the profile
  - `gender` 'MALE' | 'FEMALE' | 'INTERSEX' | 'TRANS' | 'NON_BINARY': The gender of the profile
  - `birthdate` string: The birth date of the profile
  - `title` string: The job title of the profile
  - `company` string: The company/organization name of the profile
  - `address` CdpProfileAddress: The address of the profile
    - `address1` string
    - `address2` string
    - `city` string
    - `region` string
    - `region_code` string
    - `postal_code` string
    - `country` string
    - `country_code` string
  - `identifiers` CdpIdentifier[]: The typed identifiers stitched to this profile
    - `type` 'EMAIL' | 'USER_ID' | 'ANONYMOUS_ID' | 'DEVICE_ID' | 'PHONE' | 'CRM_ID' | 'LOYALTY_ID' | 'OTHER': The type of the identifier (eg. EMAIL, USER_ID, ANONYMOUS_ID)
    - `value` string, required: The identifier value that resolves to the profile
    - `is_primary` boolean: Whether this is the primary identifier for the profile
    - `encoding` string: The encoding of the identifier value (eg. raw, sha256)
    - `source` string: The source that provided this identifier
  - `metadata` CdpMetadata[]: The traits/attributes of the profile
    - `id` string
    - `slug` string: The attribute/trait key (eg. lifetime_value)
    - `value` unknown
    - `namespace` string: The scope or origin of the attribute (eg. computed, event, visitor)
    - `format` 'TEXT' | 'NUMBER' | 'DATE' | 'BOOLEAN' | 'ARRAY' | 'OBJECT': The data type of the attribute value
    - `extra_data` unknown
  - `segments` CdpProfileSegment[]: The segments/audiences this profile currently belongs to
    - `segment_id` string: The segment/audience this profile belongs to; points to CdpSegment
    - `name` string: The name of the segment/audience
    - `joined_at` string, date-time: When the profile joined the segment (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
    - `expires_at` string, date-time: When the profile's membership expires (if applicable) (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
  - `is_anonymous` boolean: Whether the profile is anonymous (no known identity)
  - `consent` CdpConsent[]: The consent/privacy preferences of the profile
    - `purpose` string: The consent purpose or objective (eg. marketing, analytics)
    - `status` 'GRANTED' | 'DENIED' | 'PENDING': The consent status for this purpose
    - `updated_at` string, date-time: When the consent status was last updated (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
  - `source_id` string: The cdp_source this profile originated from; points to CdpSource
  - `raw` unknown

## Response `200`

Successful

- CdpProfile
  - `id` string: Unique identifier for this profile object
  - `created_at` string, date-time: The date that this profile object was created (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
  - `updated_at` string, date-time: The last date that this profile object was updated (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
  - `name` string: The full name of the profile
  - `first_name` string: The first name of the profile
  - `last_name` string: The last name of the profile
  - `email` string: The primary email address of the profile
  - `telephone` string: The primary telephone number of the profile
  - `gender` 'MALE' | 'FEMALE' | 'INTERSEX' | 'TRANS' | 'NON_BINARY': The gender of the profile
  - `birthdate` string: The birth date of the profile
  - `title` string: The job title of the profile
  - `company` string: The company/organization name of the profile
  - `address` CdpProfileAddress: The address of the profile
    - `address1` string
    - `address2` string
    - `city` string
    - `region` string
    - `region_code` string
    - `postal_code` string
    - `country` string
    - `country_code` string
  - `identifiers` CdpIdentifier[]: The typed identifiers stitched to this profile
    - `type` 'EMAIL' | 'USER_ID' | 'ANONYMOUS_ID' | 'DEVICE_ID' | 'PHONE' | 'CRM_ID' | 'LOYALTY_ID' | 'OTHER': The type of the identifier (eg. EMAIL, USER_ID, ANONYMOUS_ID)
    - `value` string, required: The identifier value that resolves to the profile
    - `is_primary` boolean: Whether this is the primary identifier for the profile
    - `encoding` string: The encoding of the identifier value (eg. raw, sha256)
    - `source` string: The source that provided this identifier
  - `metadata` CdpMetadata[]: The traits/attributes of the profile
    - `id` string
    - `slug` string: The attribute/trait key (eg. lifetime_value)
    - `value` unknown
    - `namespace` string: The scope or origin of the attribute (eg. computed, event, visitor)
    - `format` 'TEXT' | 'NUMBER' | 'DATE' | 'BOOLEAN' | 'ARRAY' | 'OBJECT': The data type of the attribute value
    - `extra_data` unknown
  - `segments` CdpProfileSegment[]: The segments/audiences this profile currently belongs to
    - `segment_id` string: The segment/audience this profile belongs to; points to CdpSegment
    - `name` string: The name of the segment/audience
    - `joined_at` string, date-time: When the profile joined the segment (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
    - `expires_at` string, date-time: When the profile's membership expires (if applicable) (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
  - `is_anonymous` boolean: Whether the profile is anonymous (no known identity)
  - `consent` CdpConsent[]: The consent/privacy preferences of the profile
    - `purpose` string: The consent purpose or objective (eg. marketing, analytics)
    - `status` 'GRANTED' | 'DENIED' | 'PENDING': The consent status for this purpose
    - `updated_at` string, date-time: When the consent status was last updated (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
  - `source_id` string: The cdp_source this profile originated from; points to CdpSource
  - `raw` unknown

---

[API](https://skmtc.dev/unified/apis/unified-to-api-2.md) · [All operations](https://skmtc.dev/unified/apis/unified-to-api-2/llms.txt) · [OpenAPI document](https://skmtc.dev/unified/apis/unified-to-api-2/revisions/7a38bdd7f089?raw)
