---
title: Update name
slug: crossriver-apis/customer-management/apis/update-customer-name
description: Update a customer's name via PUT /core/v1/cm/customers/{customerid}/name, specifying first and last names.
icon: {"apiMethod":"PUT"}
createdAt: 2026-09-29T15:33:34.774Z
---

## Relevant webhooks

For this endpoint be sure you have [registered](https://public.qa.archbee.co/crossriver-apis/webhooks/cos-webhooks) for this webhook:

- Core.Customer.Name.Changed

## API reference

Updates the name on a customer record.

:::ApiMethodV2
```json
{
  "name": "Endpoint: /core/v1/cm/customers/{customerId}/name",
  "method": "PUT",
  "url": "https://sandbox.crbcos.com/core/v1/cm/customers/{customerId}/name",
  "description": "",
  "tab": "examples",
  "examples": {
    "languages": [
      {
        "id": "xK0mDfrnuxTC3HLNjR8-M",
        "language": "curl",
        "code": "curl -L -X PUT 'https://sandbox.crbcos.com/core/v1/cm/customers/4e2a0d37-3e93-461d-9f88-b300007af893/name' ^\n-H 'Content-Type: application/json' ^\n-H 'Authorization: Bearer token' ^\n-d '{\n    \"firstName\": \"Brandon\",\n    \"lastName\": \"Sanderson\"\n}'",
        "customLabel": ""
      },
      {
        "id": "M8UW6kpZkfUBriicsGKAe",
        "language": "nodejs",
        "code": "var https = require('follow-redirects').https;\nvar fs = require('fs');\n\nvar options = {\n  'method': 'PUT',\n  'hostname': 'sandbox.crbcos.com',\n  'path': '/core/v1/cm/customers/4e2a0d37-3e93-461d-9f88-b300007af893/name',\n  'headers': {\n    'Content-Type': 'application/json',\n    'Authorization': 'Bearer token'\n  },\n  'maxRedirects': 20\n};\n\nvar req = https.request(options, function (res) {\n  var chunks = [];\n\n  res.on(\"data\", function (chunk) {\n    chunks.push(chunk);\n  });\n\n  res.on(\"end\", function (chunk) {\n    var body = Buffer.concat(chunks);\n    console.log(body.toString());\n  });\n\n  res.on(\"error\", function (error) {\n    console.error(error);\n  });\n});\n\nvar postData = JSON.stringify({\n  \"firstName\": \"Brandon\",\n  \"lastName\": \"Sanderson\"\n});\n\nreq.write(postData);\n\nreq.end();",
        "customLabel": ""
      },
      {
        "id": "NODX906lIJhvoJponVP4L",
        "language": "python",
        "code": "import requests\nimport json\n\nurl = \"https://sandbox.crbcos.com/core/v1/cm/customers/4e2a0d37-3e93-461d-9f88-b300007af893/name\"\n\npayload = json.dumps({\n  \"firstName\": \"Brandon\",\n  \"lastName\": \"Sanderson\"\n})\nheaders = {\n  'Content-Type': 'application/json',\n  'Authorization': '••••••'\n}\n\nresponse = requests.request(\"PUT\", url, headers=headers, data=payload)\n\nprint(response.text)\n",
        "customLabel": ""
      },
      {
        "id": "UhYAJ4U8DKsESN6jyBmfx",
        "language": "ruby",
        "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://sandbox.crbcos.com/core/v1/cm/customers/4e2a0d37-3e93-461d-9f88-b300007af893/name\")\n\nhttps = Net::HTTP.new(url.host, url.port)\nhttps.use_ssl = true\n\nrequest = Net::HTTP::Put.new(url)\nrequest[\"Content-Type\"] = \"application/json\"\nrequest[\"Authorization\"] = \"••••••\"\nrequest.body = JSON.dump({\n  \"firstName\": \"Brandon\",\n  \"lastName\": \"Sanderson\"\n})\n\nresponse = https.request(request)\nputs response.read_body\n",
        "customLabel": ""
      },
      {
        "id": "Fa3Ra4Qu_Jp9UzBxNEP3d",
        "language": "go",
        "code": "package main\n\nimport (\n  \"fmt\"\n  \"strings\"\n  \"net/http\"\n  \"io\"\n)\n\nfunc main() {\n\n  url := \"https://sandbox.crbcos.com/core/v1/cm/customers/4e2a0d37-3e93-461d-9f88-b300007af893/name\"\n  method := \"PUT\"\n\n  payload := strings.NewReader(`{`+\"\n\"+`\n    \"firstName\": \"Brandon\",`+\"\n\"+`\n    \"lastName\": \"Sanderson\"`+\"\n\"+`\n}`)\n\n  client := &http.Client {\n  }\n  req, err := http.NewRequest(method, url, payload)\n\n  if err != nil {\n    fmt.Println(err)\n    return\n  }\n  req.Header.Add(\"Content-Type\", \"application/json\")\n  req.Header.Add(\"Authorization\", \"Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6IjdQREJ4dGVldl9IMXhpRk9XeEhVN19RRkdxNCIsIng1dCI6IjdQREJ4dGVldl9IMXhpRk9XeEhVN19RRkdxNCIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJodHRwczovL2lkcHRlc3QuY3JiY29zLmNvbSIsIm5iZiI6MTc1MjUwMDAyMSwiaWF0IjoxNzUyNTAwMDIxLCJleHAiOjE3NTI1MDM2MjEsImF1ZCI6WyJodHRwczovL2FwaS5jcmJjb3MuY29tLyIsImh0dHBzOi8vaWRwdGVzdC5jcmJjb3MuY29tL3Jlc291cmNlcyJdLCJzY29wZSI6WyJjb3NzYngiLCJodHRwczovL2FwaS5jcmJjb3MuY29tLyJdLCJjbGllbnRfaWQiOiJiNzk5OTUxZDQ3ZWI0MTBkOTJiOWRhOTAxYjhmZmE2OSIsImp0aSI6IjNEMkM4NkNDRjg1NEQ1NDA4RDgyODc2RDhFOEVEMUU5In0.Wa9ddUdwJD2VBbY-B5u3zEAajtyt5zm_78uVQhvlDcrVpsq_3ZZxj2NvOOAE6nNihKDfBB-_dZEnzRxi5jrAQGw1ZtISvdZiO7ayIUtQj92BbSV80CAJAX1s6KYMQ_vG42XU-EHrAvJk42MZj87lBfT28VwLMahZaSADgQ9d7iVun9LjdVWWlk9915TCpvaQbD2CMFq237ArsnCo567hndD9vkbSIjQ85HJl4XishFYGboL0WQf5ZikDe-ALXUGfjUp8KMG-8fLFDOL7l9V9KJX-vYEkamBD74BRHVOoIWx-3lPf6-drEMyKAzyhmP9QtFJZcc3vxVE-gMXTpoPF3A\")\n\n  res, err := client.Do(req)\n  if err != nil {\n    fmt.Println(err)\n    return\n  }\n  defer res.Body.Close()\n\n  body, err := io.ReadAll(res.Body)\n  if err != nil {\n    fmt.Println(err)\n    return\n  }\n  fmt.Println(string(body))\n}",
        "customLabel": ""
      }
    ],
    "selectedLanguageId": "xK0mDfrnuxTC3HLNjR8-M"
  },
  "results": {
    "languages": [
      {
        "id": "zuoamZSUzJOVAnQseRBuz",
        "language": "200",
        "customLabel": "",
        "code": "{\n    \"firstName\": \"Brandon\",\n    \"lastName\": \"Sanderson\",\n    \"fullName\": \"Brandon Sanderson\"\n}"
      }
    ],
    "selectedLanguageId": "zuoamZSUzJOVAnQseRBuz"
  },
  "request": {
    "pathParameters": [
      {
        "name": "customerId",
        "kind": "required",
        "type": "string",
        "description": "The customer ID of the customer record to update"
      }
    ],
    "queryParameters": [],
    "headerParameters": [],
    "bodyDataParameters": [
      {
        "name": "entityName",
        "kind": "optional",
        "type": "string",
        "description": "Name of the business if opening a business account. 255 character maximum."
      },
      {
        "name": "prefix",
        "kind": "optional",
        "type": "string",
        "description": "Prefix for name"
      },
      {
        "name": "firstName",
        "kind": "optional",
        "type": "string",
        "description": "Customer first name. 100 characters maximum"
      },
      {
        "name": "middleName",
        "kind": "optional",
        "type": "string",
        "description": "Customer middle name. 50 characters maximum"
      },
      {
        "name": "lastName",
        "kind": "optional",
        "type": "string",
        "description": "Customer last name. 100 characters maximum"
      },
      {
        "name": "suffix",
        "kind": "optional",
        "type": "string",
        "description": "Suffix for the name"
      },
      {
        "name": "preferredName",
        "kind": "optional",
        "type": "string",
        "description": "Customer preferred name. 255 character maximum"
      },
      {
        "name": "fullName",
        "kind": "optional",
        "type": "string",
        "description": "Customer's entire name including middle  initial. 255 characters maximum"
      }
    ],
    "formDataParameters": []
  },
  "currentNewParameter": {
    "label": "Body Parameter",
    "value": "bodyDataParameters"
  },
  "response": [
    {
      "name": "entityName",
      "kind": "optional",
      "type": "string",
      "description": "Name of the business if opening a business account"
    },
    {
      "name": "prefix",
      "kind": "optional",
      "type": "string",
      "description": "Prefix for name",
      "children": []
    },
    {
      "name": "firstName",
      "kind": "optional",
      "type": "boolean",
      "description": "Customer first name",
      "children": []
    },
    {
      "name": "middleName",
      "kind": "optional",
      "type": "string",
      "description": "Customer middle name",
      "children": []
    },
    {
      "name": "lastName",
      "kind": "optional",
      "type": "string",
      "description": "Customer last name",
      "children": []
    },
    {
      "name": "suffix",
      "kind": "optional",
      "type": "string",
      "description": "Suffix for the name",
      "children": []
    },
    {
      "name": "preferredName",
      "kind": "optional",
      "type": "string",
      "description": "Customer preferred name",
      "children": []
    },
    {
      "name": "fullName",
      "kind": "optional",
      "type": "string",
      "description": "Customer's entire name including middle  initial",
      "children": []
    }
  ],
  "hasTryItOut": false,
  "autoGeneratedAnchorSlug": "endpoint-corev1cmcustomerscustomeridname",
  "legacyHash": "Z2UswgK_wZ756ERa8KUqx"
}
```
:::

