---
title: "Enable or disable FlightHub integration"
method: PUT
path: "/orgmng/fh-service-accounts/config/integration"
tags: ["Flight Hub Service Accounts"]
---

# Enable or disable FlightHub integration

`PUT /orgmng/fh-service-accounts/config/integration`

## Request

- Base URL: `http://localhost:8486`
- URL: `http://localhost:8486/orgmng/fh-service-accounts/config/integration`
- Auth: API key in header `x-auth-token`

Updates the enabled/disabled state of the FlightHub integration for the current organization

## Request body

- UpdateFlightHubIntegrationRequestDTO: Integration update request
  - `enabledIntegration` boolean, required: Whether the FlightHub integration is enabled
  - `organizationId` integer: Target organization ID. Required when the caller has update:fh-config:any-org; ignored for self-org updates.

## Response `200`

Integration updated successfully

- FlightHubConfigDTO
  - `id` integer: FlightHub config ID
  - `organizationId` integer: Organization ID
  - `enabledIntegration` boolean: Whether the FlightHub integration is enabled

## Other responses

- `422`: Validation failed
- `500`: Internal server error

---

[API](https://skmtc.dev/airdodge/apis/api-core.md) - [All operations](https://skmtc.dev/airdodge/apis/api-core/llms.txt) - [OpenAPI document](https://skmtc.dev/airdodge/apis/api-core/revisions/fb3c5a1055cc?raw)
