---
title: "Update organization"
method: PATCH
path: "/v1/organization"
tags: ["Organization"]
---

# Update organization

`PATCH /v1/organization`

Partially updates the authenticated organization. Only provided fields will be updated.

## Request body

- object
  - `name` string — Organization name
  - `slug` string — Organization slug
  - `logo` string — Organization logo URL
  - `metadata` string — Additional metadata in JSON format
  - `website` string — Organization website URL
  - `onboardingCompleted` boolean — Whether onboarding is completed
  - `fleetDmLabelId` integer — FleetDM label ID for device management
  - `isFleetSetupCompleted` boolean — Whether FleetDM setup is completed
  - `primaryColor` string — Organization primary color in hex format
  - `advancedModeEnabled` boolean — Whether advanced mode is enabled for the organization
  - `backgroundCheckStepEnabled` boolean — Whether the background-check step is required during member onboarding. Set to false to turn off the "Require background checks" setting; true to require it.
  - `evidenceApprovalEnabled` boolean — Whether evidence requires approval before it is accepted.
  - `deviceAgentStepEnabled` boolean — Whether the device-agent step is enabled during member onboarding.
  - `securityTrainingStepEnabled` boolean — Whether the security-training step is enabled during member onboarding.
  - `whistleblowerReportEnabled` boolean — Whether the whistleblower reporting feature is enabled.
  - `accessRequestFormEnabled` boolean — Whether the trust-portal access request form is enabled.

## Response `200`

Organization updated successfully

- object
  - `id` string — The organization ID
  - `name` string — Organization name
  - `slug` string — Organization slug
  - `logo` string, nullable — Organization logo URL
  - `metadata` string, nullable — Additional metadata in JSON format
  - `website` string, nullable — Organization website URL
  - `onboardingCompleted` boolean — Whether onboarding is completed
  - `hasAccess` boolean — Whether organization has access to the platform
  - `fleetDmLabelId` integer, nullable — FleetDM label ID for device management
  - `isFleetSetupCompleted` boolean — Whether FleetDM setup is completed
  - `primaryColor` string, nullable — Organization primary color in hex format
  - `createdAt` string, date-time — When the organization was created
  - `authType` 'api-key' | 'session' — How the request was authenticated

## Other responses

- `400` — Bad Request - Invalid update data
- `401` — Unauthorized - Invalid authentication or insufficient permissions
- `404` — Organization not found

---

[API](https://skmtc.net/trycompai/apis/comp-ai-api.md) · [All operations](https://skmtc.net/trycompai/apis/comp-ai-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/trycompai/comp-ai-api/versions/726b9523fb22/schema)
