---
title: "Update Customer"
method: PATCH
path: "/customers/{id}"
tags: ["customers"]
---

# Update Customer

`PATCH /customers/{id}`

Update an existing customer.

## Path parameters

- `id` string, uuid, required

## Query parameters

- `mock` boolean

## Request body

- Customer — Request body for customer
  - `data` CustomerData — Request body to create customer
    - `type` string — Type of resource
    - `attributes` object — Attributes of a customer resource
      - `organizationId` string, uuid, required — UUID of the organization to which an customer belongs
      - `firstName` string — First name of the customer
      - `lastName` string — Last name of the customer
      - `email` string — Customer's email address
      - `organizationCustomerId` string — Organization's own ID for customer
      - `phoneNumber` string — Customer's phone number
      - `customerNotes` string — Notes about the customer
      - `locale` string — Locale of the customer

## Response `201`

Return a single data response

- object
  - `data` CustomerDataResponse, required — Expected data response object
    - `type` string — Type of resource
    - `id` string, uuid — UUID of resource; additional resource attributes will also be returned
    - `attributes` object — Attributes of resource
      - `firstName` string — First name of the customer
      - `lastName` string — Last name of the customer
      - `email` string — Customer's email address
      - `organizationCustomerId` string — Organization's own ID for customer
      - `phoneNumber` string — Customer's phone number
      - `customerNotes` string — Notes about the customer
      - `locale` string — Locale of the customer
      - `createdAt` string, date-time — Date the resource was logged
      - `updatedAt` string, date-time — Date the resource was last modified
      - `createdBy` string, uuid — User who created the customer resource
      - `updatedBy` union — User who updated the customer resource
        - string, uuid
        - unknown
    - `relationships` CustomerRelationships — Relationships of a customer
      - `organization` OrganizationRelationship, required — Organization that the resource belongs to
        - `data` object
          - `type` string — Type of the organization
          - `id` string, uuid — UUID of the organization
    - `links` Link — Link object for resource meta data
      - `self` string
  - `links` Link — Link object for resource meta data
    - `self` string

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `500` — Internal Server Error

---

[API](https://skmtc.dev/brickworksoftware/apis/brickwork-software-api.md) · [All operations](https://skmtc.dev/brickworksoftware/apis/brickwork-software-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/brickworksoftware/brickwork-software-api/revisions/b06aa4f3b83c/schema)
