Azure Repos · Schema

GitRef

A Git ref (branch or tag) including its name, object ID, and optional creator and status information.

Developer ToolsDevOpsVersion ControlRepositoriesTFVC

Properties

Name Type Description
name string Full ref name (e.g., refs/heads/main, refs/tags/v1.0)
objectId string SHA-1 hash the ref points to
peeledObjectId string For annotated tags, the SHA-1 of the target object
creator object
url string REST API URL for this ref
statuses array Status checks for this ref
isLocked boolean Whether the ref is locked
isLockedBy object
View JSON Schema on GitHub

JSON Schema

microsoft-azure-repo-git-ref-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-repo/json-schema/microsoft-azure-repo-git-ref-schema.json",
  "title": "GitRef",
  "description": "A Git ref (branch or tag) including its name, object ID, and optional creator and status information.",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-repo-refs-api-openapi.yml#/components/schemas/GitRef",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "Full ref name (e.g., refs/heads/main, refs/tags/v1.0)"
    },
    "objectId": {
      "type": "string",
      "description": "SHA-1 hash the ref points to"
    },
    "peeledObjectId": {
      "type": "string",
      "description": "For annotated tags, the SHA-1 of the target object"
    },
    "creator": {
      "$ref": "#/$defs/IdentityRef"
    },
    "url": {
      "type": "string",
      "format": "uri",
      "description": "REST API URL for this ref"
    },
    "statuses": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/GitStatus"
      },
      "description": "Status checks for this ref"
    },
    "isLocked": {
      "type": "boolean",
      "description": "Whether the ref is locked"
    },
    "isLockedBy": {
      "$ref": "#/$defs/IdentityRef"
    }
  },
  "$defs": {
    "GitStatus": {
      "type": "object",
      "description": "Status metadata posted by a service or extension against a commit or pull request, such as build results or policy checks.",
      "properties": {
        "id": {
          "type": "integer",
          "format": "int32",
          "description": "Status identifier"
        },
        "state": {
          "type": "string",
          "enum": [
            "notSet",
            "pending",
            "succeeded",
            "failed",
            "error",
            "notApplicable"
          ],
          "description": "State of the status"
        },
        "description": {
          "type": "string",
          "description": "Status description"
        },
        "context": {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "description": "Name of the status context"
            },
            "genre": {
              "type": "string",
              "description": "Genre of the status"
            }
          }
        },
        "targetUrl": {
          "type": "string",
          "format": "uri",
          "description": "URL with status details"
        },
        "createdBy": {
          "$ref": "#/$defs/IdentityRef"
        },
        "creationDate": {
          "type": "string",
          "format": "date-time"
        },
        "updatedDate": {
          "type": "string",
          "format": "date-time"
        }
      }
    },
    "IdentityRef": {
      "type": "object",
      "description": "Reference to an Azure DevOps identity (user or group)",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "description": "Unique identity ID"
        },
        "displayName": {
          "type": "string",
          "description": "Display name of the identity"
        },
        "uniqueName": {
          "type": "string",
          "description": "Unique name (typically email)"
        },
        "url": {
          "type": "string",
          "format": "uri",
          "description": "REST API URL for this identity"
        },
        "imageUrl": {
          "type": "string",
          "format": "uri",
          "description": "URL to the identity's avatar image"
        },
        "descriptor": {
          "type": "string",
          "description": "Graph descriptor for the identity"
        },
        "isContainer": {
          "type": "boolean",
          "description": "Whether this identity is a group"
        }
      }
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/microsoft-azure-repo-git-ref"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.