---
title: "Directory Enabled"
method: POST
path: "organization.directory_enabled"
---

# Directory Enabled

`POST organization.directory_enabled` (webhook)

Triggered when a directory sync is enabled

## Payload

- OrganizationDirectoryEnabledEvent — Payload delivered for the organization.directory_enabled webhook event.
  - `spec_version` string, required — The webhook specification version
  - `id` string, required — Unique identifier for the webhook event (must be prefixed with "evt_")
  - `type` 'organization.directory_enabled', required — The event type
  - `occurred_at` string, date-time, required — When the event occurred (ISO 8601 format)
  - `environment_id` string, required — The environment ID where the event occurred
  - `organization_id` string — The organization ID (if applicable)
  - `object` 'Directory', required — The type of object that triggered the webhook
  - `data` DirectoryEventData, required — Directory payload for directory enabled/disabled webhook events.
    - `id` string, required — Directory identifier
    - `organization_id` string, required — Organization that owns the directory
    - `directory_type` string — Directory protocol type
    - `provider` string — Directory provider
    - `enabled` boolean — Whether directory sync is enabled
    - `updated_at` string, date-time — When the directory was last updated
  - `display_name` string — Human-readable display name for the event

## Acknowledgement `200`

Webhook received successfully

---

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