Skip to main content

Update customer

Method PUT

https://my.easyweek.io/api/public/v2/customers/{customer_uuid}

Description: This endpoint updates a customer. It uses PATCH semantics — only the fields present in the body are changed, and sending an empty string clears that field. A phone or email already used by another customer in the workspace is rejected.

Example Request

curl -i -X PUT \
https://my.easyweek.io/api/public/v2/customers/{customer_uuid} \
-H 'Authorization: Bearer <YOUR_SECRET>' \
-H 'Workspace: <YOUR_WORKSPACE>'

Request body

{
"last_name": "Smith",
"comment": "Updated note"
}

Path Parameters

  • customer_uuid (string, required): The unique identifier of the customer to update.

Body Parameters

Any subset of the create fields (phone, first_name, last_name, middle_name, email, birthday, comment, is_business, company_name, vat_number, telegram, viber, whatsapp). Only the fields you send are modified.

Example Response

{
"uuid": "b6d6a1f2-6f1e-4a2b-9a2c-1f2e3d4c5b6a",
"first_name": "Jane",
"last_name": "Smith",
"middle_name": null,
"phone": "+12025550111",
"email": "jane@example.com",
"birthday": "1990-05-01",
"comment": "Updated note",
"is_business": true,
"company_name": "Acme Inc.",
"vat_number": "VAT123456",
"telegram": "@jane",
"viber": "+12025550111",
"whatsapp": "+12025550111",
"created_at": "2026-07-16T09:00:00Z",
"updated_at": "2026-07-16T10:30:00Z"
}