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

# Set customer properties values

> Sets one or more customer properties' values for the specified customer. Each property is validated against its definition (type and type configuration). Setting a property value to `null` clears it. Unknown fields in the request body are rejected. Required scope: `customers:rw`.



## OpenAPI

````yaml /api/customer-data-platform/openapi.json post /v1/set_customer_properties_values
openapi: 3.0.0
info:
  title: Customer Data Platform API
  description: A service for collecting, storing, and managing end-user data.
  version: 0.0.1
servers:
  - url: https://api.text.com/cdp
    description: Main production server URL
security:
  - PersonalAccessToken: []
  - OAuth2BearerToken:
      - customers:ro
paths:
  /v1/set_customer_properties_values:
    post:
      tags:
        - Customer properties
      summary: Set customer properties values
      description: >-
        Sets one or more customer properties' values for the specified customer.
        Each property is validated against its definition (type and type
        configuration). Setting a property value to `null` clears it. Unknown
        fields in the request body are rejected. Required scope: `customers:rw`.
      operationId: setCustomerPropertiesValues
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SetCustomerPropertiesValuesRequest'
            examples:
              set_multiple_properties:
                summary: Set multiple properties values
                value:
                  customer_id: cf89fa3a-5ee9-4bdb-84ec-38824b2e2786
                  properties:
                    9b1c9e0a-3a4b-4f0e-9b6f-1f6c8a2b0d11: 42
                    a1b2c3d4-5e6f-7a8b-9c0d-1e2f3a4b5c6d: hello
              clear_property:
                summary: Clear the property value
                value:
                  customer_id: cf89fa3a-5ee9-4bdb-84ec-38824b2e2786
                  properties:
                    9b1c9e0a-3a4b-4f0e-9b6f-1f6c8a2b0d11: null
      responses:
        '200':
          description: Properties have been set successfully.
        '401':
          description: Invalid access token
        '403':
          description: Insufficient scopes
        '422':
          description: >-
            Invalid request body (e.g. missing or empty `customer_id`, empty
            `properties` map, exceeding the properties limit, unknown property
            ID, or a value that does not match the property type).
        '500':
          description: Internal error
      security:
        - PersonalAccessToken: []
        - OAuth2BearerToken:
            - customers:rw
components:
  schemas:
    SetCustomerPropertiesValuesRequest:
      type: object
      required:
        - customer_id
        - properties
      additionalProperties: false
      properties:
        customer_id:
          type: string
          description: The customer whose property values should be set.
        properties:
          type: object
          additionalProperties:
            description: >-
              Property value keyed by property definition ID. The value type
              must match the property's defined type: boolean for `bool`, string
              (max 2048 chars) for `string`, number for `number`, RFC 3339 /
              date / time string for `timestamp` (depending on type
              configuration format), or a valid HTTP(S) URL string (max 2048
              chars) for `link`. Use `null` to clear a property value.
          description: A map of property definition IDs to their values.
  securitySchemes:
    PersonalAccessToken:
      description: >-
        Use your `account ID` as the username and your personal access token
        (PAT) as the password, or pass a Base64-encoded value directly in the
        Authorization header. For more information, see the <a
        href="/authentication/personal-access-tokens">personal access tokens
        guide</a>.
      type: http
      scheme: basic
    OAuth2BearerToken:
      description: >-
        This API uses OAuth2 with the implicit grant flow. <a
        href="/authentication/oauth-authorization#implicit-grant">Learn about
        the implicit grant flow.</a>
      type: oauth2
      flows:
        implicit:
          authorizationUrl: https://accounts.livechat.com
          scopes: {}
        authorizationCode:
          authorizationUrl: https://accounts.livechat.com
          tokenUrl: https://accounts.livechat.com/token
          scopes: {}

````