---
title: "update company domain object"
method: PATCH
path: "/company-domains/{id}"
tags: ["CompanyDomain"]
---

# update company domain object

`PATCH /company-domains/{id}`

Update the company domain object

## Path parameters

- `id` string, required

## Request body

- CompanyDomain — A domain claimed by a company
  - `id` string — The ID of the company domain
  - `company_id` string — The ID of the company that owns the domain
  - `created_time` integer — Time at which the domain was created
  - `created_by_id` string — The ID of the user who created this domain
  - `last_updated_time` integer — Time at which the domain was last updated
  - `last_updated_by_id` string — The ID of the user who last updated this domain
  - `domain_name` string — The fully qualified domain name
  - `sso_locking_enabled` boolean — If enabled forces users from this domain (email) to log using SSO

## Response `200`

Company domain updated

- CompanyDomain — A domain claimed by a company
  - `id` string — The ID of the company domain
  - `company_id` string — The ID of the company that owns the domain
  - `created_time` integer — Time at which the domain was created
  - `created_by_id` string — The ID of the user who created this domain
  - `last_updated_time` integer — Time at which the domain was last updated
  - `last_updated_by_id` string — The ID of the user who last updated this domain
  - `domain_name` string — The fully qualified domain name
  - `sso_locking_enabled` boolean — If enabled forces users from this domain (email) to log using SSO

## Other responses

- `400` — Invalid or missing parameter
- `401` — User not authenticated
- `403` — User not authorized
- `404` — Company not found
- `default` — Unknown error

---

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