---
title: "RecoverOntology"
method: POST
path: "/textql.rpc.public.patches.OntologyManagementService/RecoverOntology"
tags: ["OntologyManagementService"]
---

# RecoverOntology

`POST /textql.rpc.public.patches.OntologyManagementService/RecoverOntology`

## Request

- The document declares no server URL.
- Auth: none required

## Headers

- `Connect-Protocol-Version` 1, required: Define the version of the Connect protocol
- `Connect-Timeout-Ms` number: Define the timeout, in ms

## Request body

- TextqlRpcPublicPatchesRecoverOntologyRequest
  - `level` 'RECOVER_ONTOLOGY_LEVEL_UNSPECIFIED' | 'RECOVER_ONTOLOGY_LEVEL_DISCARD_LOCAL' | 'RECOVER_ONTOLOGY_LEVEL_RESET_TO_REMOTE' | 'RECOVER_ONTOLOGY_LEVEL_RECLONE'

## Response `200`

Success

- GoogleProtobufEmpty: A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }

## Other responses

- `default`: Error

---

[API](https://skmtc.dev/textql/apis/textql-rpc-platform.md) - [All operations](https://skmtc.dev/textql/apis/textql-rpc-platform/llms.txt) - [OpenAPI document](https://skmtc.dev/textql/apis/textql-rpc-platform/revisions/31ce2b0c4427?raw)
