Skip to main content
PUT
https://prod-contactswing-fastapi-962560522883.us-central1.run.app
/
v2
/
_customers
/
{customer_id}
Update Customer
curl --request PUT \
  --url https://prod-contactswing-fastapi-962560522883.us-central1.run.app/v2/_customers/{customer_id} \
  --header 'Authorization: <authorization>'
{
  "ctx_id": "<string>",
  "data": {
    "id": "<string>",
    "name": "<string>"
  },
  "message": "<string>"
}

Authorizations

Authorization
string
required
Enter your ContactSwing JWT Bearer token.

Path Parameters

customer_id
string
required
Unique customer identifier from ContactSwing dashboard.

Request Body

JSON: CustomerRequest (see OpenAPI spec)
name
string
Updated customer full name
phone
string
Updated phone number +1234567890
email
string
Updated email address [email protected]
tags
array
Updated customer tags ["vip", "lead"]

Response

200 OK - Customer updated successfully
ctx_id
string
Request context ID
data
object
id
string
Customer ID
name
string
Updated customer name
message
string
”Request processed successfully”

Example

{
  "name": "John Doe Updated",
  "phone": "+1987654321",
  "tags": ["vip", "loyal"]
}