---
title: "Update a directory connection"
method: PATCH
path: "/api/v1/dsync/{directoryId}"
tags: ["Directory Sync"]
---

# Update a directory connection

`PATCH /api/v1/dsync/{directoryId}`

## Path parameters

- `directoryId` string, required

## Request body

- object
  - `name` string — Name
  - `webhook_url` string — Webhook URL
  - `webhook_secret` string — Webhook secret
  - `log_webhook_events` string — If true, webhook requests will be logged
  - `deactivated` string — If true, the directory connection will be deactivated
  - `google_access_token` string — Google access token
  - `google_refresh_token` string — Google refresh token

## Response `200`

Success

- Directory
  - `id` string — Directory ID
  - `name` string — name
  - `tenant` string — Tenant
  - `product` string — Product
  - `type` string — Directory provider
  - `deactivated` boolean — Status
  - `log_webhook_events` boolean — If true, webhook requests will be logged
  - `scim` object
    - `path` string — SCIM path
    - `endpoint` string — SCIM url
    - `secret` string — SCIM secret
  - `webhook` object
    - `endpoint` string — Webhook url
    - `secret` string — Webhook secret

---

[API](https://skmtc.net/ory/apis/enterprise-sso-directory-sync.md) · [All operations](https://skmtc.net/ory/apis/enterprise-sso-directory-sync/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/ory/enterprise-sso-directory-sync/versions/d92c991ace28/schema)
