---
title: "Return the repository field value"
method: GET
path: "/repositories/property/{field}"
tags: ["Repositories"]
---

# Return the repository field value

`GET /repositories/property/{field}`

## Request

- Base URL: `/api/v1` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/v1/repositories/property/{field}`
- Auth: none declared
- TypeScript: <https://skmtc.dev/oracle/apis/opengrok-restful-api/docs/repositories/property/:field/get.ts> (a function with typed inputs; its response is checked against the schema)

The repository path is relative to source root. Examples of field names:
- `working` (boolean): is the repository capable of running underlying SCM commands
- `type` (string): type of SCM
- `remote` (boolean): is the SCM source remote
- `parent` (string): origin/parent of the SCM
- `branch` (string): branch identification
- `currentVersion` (string): current revision ID
- `handleRenamedFiles` (boolean): whether to handle renamed files for history cache generation
- `historyEnabled` (boolean): is history enabled
- `annotationCacheEnabled` (boolean): is annotation cache enabled

## Path parameters

- `field` string, required

## Query parameters

- `repository` string, required

## Response `200`

Repository field value.

- unknown

---

[API](https://skmtc.dev/oracle/apis/opengrok-restful-api.md) - [All operations](https://skmtc.dev/oracle/apis/opengrok-restful-api/llms.txt) - [OpenAPI document](https://skmtc.dev/oracle/apis/opengrok-restful-api/revisions/4844bf710203?raw)
