Skip to content
  • Auto
  • Light
  • Dark
Talk to an expert

Set Name

Update a customer name
v1.customers.set_name(**kwargs) -> dataCustomerCustomerSetNameResponse
post/v1/customers/{customer_id}/setName

Updates the specified customer's name.

Parameters
customer_idString
formatuuid
nameString

The new name for the customer. This will be truncated to 160 characters if the provided name is longer.

Returns
CustomerSetNameResponseclass
Hide ParametersShow Parameters
dataidStringexternal_idStringingest_aliasesarraynameStringcustom_fieldshashCustomer
require "metronome_sdk"

metronome = MetronomeSDK::Client.new(bearer_token: "My Bearer Token")

response = metronome.v1.customers.set_name(
  customer_id: "d7abd0cd-4ae9-4db7-8676-e986a4ebd8dc",
  name: "Example, Inc."
)

puts(response)
200 Example
{
  "data": {
    "id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
    "external_id": "external_id",
    "ingest_aliases": [
      "string"
    ],
    "name": "name",
    "custom_fields": {
      "foo": "string"
    }
  }
}