---
title: "Update an organization"
method: PUT
path: "/organizations/{organizationId}"
tags: ["Organizations"]
---

# Update an organization

`PUT /organizations/{organizationId}`

## Request

- Base URL: `https://api.xfa.tech`
- URL: `https://api.xfa.tech/organizations/{organizationId}`
- Auth: HTTP bearer

## Path parameters

- `organizationId` string, required

## Request body

- OrganizationsUpdateRequestBody
  - `name` string, required: Name of Organization
  - `notify_discovered_devices` boolean: Notify discovered devices
  - `invite_discovered_devices` boolean: Invite discovered devices
  - `default_language` '' | 'en' | 'nl' | 'fr' | 'de' | 'es': Language for end-user emails when the recipient has not picked one; a user's own choice always wins. The set mirrors the email templates shipped by xfa-notification-service. An empty string is the canonical way to clear the organization default, on both PUT and PATCH, so the whole organization can be saved in one request; xfa-organizations-service stores it as an absent attribute.
  - `self_invite_enabled` boolean: Allow verified native app users to request self-invite when eligible
  - `exclude_from_customer_metrics` boolean: Keeps this organization out of company-wide customer metrics. Set on XFA's own organizations. Only system administrators may change it; an org admin sending the stored value back is accepted.
  - `notify_unsafe_devices` boolean: Notify unsafe devices
  - `slack_enabled` boolean: Enable Slack DMs for device risk notifications
  - `slack_notify_unsafe_devices` boolean: Send Slack DMs to users about unsafe devices
  - `slack_notify_discovered_devices` boolean: Send Slack DMs to users about discovered devices
  - `slack_invite_discovered_devices` boolean: Send invitation Slack DMs to users with discovered devices
  - `manual_invite_send_slack` boolean: Last-used Slack toggle state in the manual Invite users popup.
  - `teams_notify_unsafe_devices` boolean: Send Teams DMs to users about unsafe devices
  - `teams_notify_discovered_devices` boolean: Send Teams DMs to users about discovered devices
  - `teams_invite_discovered_devices` boolean: Send invitation Teams DMs to users with discovered devices
  - `manual_invite_send_teams` boolean: Last-used Microsoft Teams toggle state in the manual Invite users popup.
  - `use_user_agent_and_client_hints` boolean: Use user-agent and client hints from browser to complete checks
  - `use_discovery_data` boolean: Use Discovery data to complete checks
  - `google_chrome_device_trust` boolean: Google Chrome device trust
  - `microsoft_edge_device_trust` object
    - `tenant_id` string: Tenant ID for device trust
    - `client_id` string: Client ID for device trust
    - `client_secret` string: Client Secret for device trust
  - `feature_flags` FeatureFlag[]: Feature flags enabled for this organization
  - `tax_number` string: Tax Number of Organization
  - `phone_number` string: Phone Number of Organization
  - `getting_started_state` string: JSON blob owned by the dashboard's Getting Started journey; opaque to the backend.

## Response `204`

Organization updated

## Other responses

- `400`: The organization is not valid; the body is the reason as plain text (for example "Name of the organization cannot contain a phone number").
- `409`: The organization changed concurrently, or admin MFA approval is still enabled while its feature flag is being removed.

---

[API](https://skmtc.dev/xfa/apis/xfa-api.md) · [All operations](https://skmtc.dev/xfa/apis/xfa-api/llms.txt) · [OpenAPI document](https://skmtc.dev/xfa/apis/xfa-api/revisions/1a1be0e8972b?raw)
