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

# GetOntologyHistoryFileDiff

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

## Headers

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

## Request body

- TextqlRpcPublicPatchesGetOntologyHistoryFileDiffRequest
  - `commitId` string
  - `path` string

## Response `200`

Success

- TextqlRpcPublicPatchesGetOntologyHistoryFileDiffResponse
  - `commitId` string
  - `path` string
  - `previousPath` string, nullable
  - `changeType` 'ONTOLOGY_HISTORY_CHANGE_TYPE_UNSPECIFIED' | 'ONTOLOGY_HISTORY_CHANGE_TYPE_ADDED' | 'ONTOLOGY_HISTORY_CHANGE_TYPE_MODIFIED' | 'ONTOLOGY_HISTORY_CHANGE_TYPE_DELETED' | 'ONTOLOGY_HISTORY_CHANGE_TYPE_RENAMED'
  - `beforeContent` string
  - `afterContent` string
  - `isBinary` boolean

## Other responses

- `default` — Error

---

[API](https://skmtc.net/textql/apis/textql-rpc-platform.md) · [All operations](https://skmtc.net/textql/apis/textql-rpc-platform/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/textql/textql-rpc-platform/versions/31ce2b0c4427/schema)
