---
title: "Assign GHES installation to a workspace"
method: POST
path: "/github_app/ghes/assign"
tags: ["Git Sync"]
---

# Assign GHES installation to a workspace

`POST /github_app/ghes/assign`

Assigns a discovered GHES App installation to a workspace. The resulting
installation is marked as admin-provisioned, so workspace admins cannot
remove it. Super-admin only.

## Request body

- object
  - `workspace_id` string, required
  - `installation_id` integer, required

## Response `200`

Installation assigned

---

[API](https://skmtc.net/windmill/apis/windmill-api.md) · [All operations](https://skmtc.net/windmill/apis/windmill-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/windmill/windmill-api/revisions/4f91ba605804/schema)
