# \GitSyncApi
All URIs are relative to */api*
[**delete_from_workspace**](GitSyncApi.md#delete_from_workspace) | **DELETE** /w/{workspace}/github_app/installation/{installation_id} | Delete a GitHub installation from a workspace
[**export_installation**](GitSyncApi.md#export_installation) | **GET** /w/{workspace}/github_app/export/{installationId} | Export GitHub installation JWT token
[**get_global_connected_repositories**](GitSyncApi.md#get_global_connected_repositories) | **GET** /github_app/connected_repositories | get connected repositories
[**import_installation**](GitSyncApi.md#import_installation) | **POST** /w/{workspace}/github_app/import | Import GitHub installation from JWT token
[**install_from_workspace**](GitSyncApi.md#install_from_workspace) | **POST** /w/{workspace}/github_app/install_from_workspace | Install a GitHub installation from another workspace
## delete_from_workspace
> delete_from_workspace(workspace, installation_id)
Delete a GitHub installation from a workspace
Removes a GitHub installation from the specified workspace. Requires admin privileges.
### Parameters
**workspace** | **String** | | [required] |
**installation_id** | **i64** | The ID of the GitHub installation to delete | [required] |
### Return type
(empty response body)
### Authorization
[cookieAuth](../README.md#cookieAuth), [bearerAuth](../README.md#bearerAuth)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: Not defined
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
## export_installation
> models::ExportInstallation200Response export_installation(workspace, installation_id)
Export GitHub installation JWT token
Exports the JWT token for a specific GitHub installation in the workspace
### Parameters
**workspace** | **String** | | [required] |
**installation_id** | **i32** | | [required] |
### Return type
[**models::ExportInstallation200Response**](exportInstallation_200_response.md)
### Authorization
[cookieAuth](../README.md#cookieAuth), [bearerAuth](../README.md#bearerAuth)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
## get_global_connected_repositories
> Vec<models::GithubInstallationsInner> get_global_connected_repositories()
get connected repositories
### Parameters
This endpoint does not need any parameter.
### Return type
[**Vec<models::GithubInstallationsInner>**](GithubInstallations_inner.md)
### Authorization
[cookieAuth](../README.md#cookieAuth), [bearerAuth](../README.md#bearerAuth)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
## import_installation
> import_installation(workspace, import_installation_request)
Import GitHub installation from JWT token
Imports a GitHub installation from a JWT token exported from another instance
### Parameters
**workspace** | **String** | | [required] |
**import_installation_request** | [**ImportInstallationRequest**](ImportInstallationRequest.md) | | [required] |
### Return type
(empty response body)
### Authorization
[cookieAuth](../README.md#cookieAuth), [bearerAuth](../README.md#bearerAuth)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: Not defined
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
## install_from_workspace
> install_from_workspace(workspace, install_from_workspace_request)
Install a GitHub installation from another workspace
### Parameters
**workspace** | **String** | | [required] |
**install_from_workspace_request** | [**InstallFromWorkspaceRequest**](InstallFromWorkspaceRequest.md) | | [required] |
### Return type
(empty response body)
### Authorization
[cookieAuth](../README.md#cookieAuth), [bearerAuth](../README.md#bearerAuth)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: Not defined
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)