---
title: "Update a company"
method: PATCH
path: "/companies/{id}"
tags: ["Companies"]
---

# Update a company

`PATCH /companies/{id}`

Partially update a company. Only provided fields will be updated.

- **Omitted fields**: Not modified (current value preserved)
- **Provided fields**: Updated to the new value
- **Null values**: Clear the field (set to null) where applicable

## Path parameters

- `id` string, required

## Request body

- CompanyPatch — Partial company update. All fields are optional. - **Omitted fields**: Not modified (current value preserved) - **Provided fields**: Updated to the new value - **Null values**: Clear the field (set to null) where applicable
  - `name` string — Company legal name
  - `addressLine1` string, nullable — Primary street address
  - `addressLine2` string, nullable — Secondary address line
  - `city` string, nullable — City name
  - `country` string, nullable — Country code or name
  - `fax` string, nullable — Fax number
  - `invoiceOnly` boolean, nullable — Whether this company is used only for invoicing purposes
  - `invoiceVerbiage` string, nullable — Custom text to include on invoices
  - `primaryContactName` string, nullable — Name of primary contact person
  - `primaryContactEmail` string, email, nullable — Email address of primary contact
  - `primaryContactPhone` string, nullable — Phone number of primary contact
  - `key` string, nullable — Client-defined reference identifier

## Response `200`

Company updated successfully

- Company
  - `object` 'COMPANY' — Object type identifier
  - `id` string, uuid, required — Unique company identifier
  - `name` string, required — Company legal name
  - `addressLine1` string, nullable — Primary street address
  - `addressLine2` string, nullable — Secondary address line (suite, floor, etc.)
  - `city` string, nullable — City name
  - `country` string, nullable — Country code or name
  - `fax` string, nullable — Fax number
  - `invoiceOnly` boolean, nullable — Whether this company is used only for invoicing purposes
  - `invoiceVerbiage` string, nullable — Custom text to include on invoices for this company
  - `primaryContactName` string, nullable — Name of primary contact person
  - `primaryContactEmail` string, email, nullable — Email address of primary contact
  - `primaryContactPhone` string, nullable — Phone number of primary contact
  - `createdBy` UserReference — Enhanced reference to a user resource (returned in responses). Includes full user details in addition to id/key. Note: Does NOT include nested references (teams, etc.) to prevent recursion. Maximum nesting depth: 1 level.
    - `id` string, uuid, required — User UUID
    - `key` string, nullable — Client-defined reference ID if set
    - `email` string, email, required — User's email address
    - `name` string, nullable — User's full name
    - `phone` string, nullable — User's phone number
    - `phoneExt` string, nullable — Phone extension
    - `status` 'PENDING' | 'ACTIVE' | 'INACTIVE', required — User account status
    - `avatarId` string, uuid, nullable — Profile avatar document ID
    - `createdAt` string, date-time, required — When the user was created
    - `updatedAt` string, date-time, required — When the user was last updated
    - `deletedAt` string, date-time, nullable — When the user was soft deleted (null if active)
  - `key` string, nullable — Client-defined reference identifier
  - `createdAt` string, date-time, required — When the company was created
  - `updatedAt` string, date-time, required — When the company was last updated
  - `deletedAt` string, date-time, nullable — When the company was soft deleted (null if active)

## Other responses

- `400` — Bad request - invalid input
- `401` — Unauthorized - invalid or missing access token
- `404` — Resource not found
- `409` — Conflict - resource already exists or constraint violation
- `500` — Internal server error

---

[API](https://skmtc.net/mvmnt/apis/mvmnt-api.md) · [All operations](https://skmtc.net/mvmnt/apis/mvmnt-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/mvmnt/mvmnt-api/revisions/c44e5e7a4256/schema)
