Azure Repos · Schema

GitItem

A file, folder, or submodule in a repository. Files are blobs, folders are trees, and submodules are commits.

Developer ToolsDevOpsVersion ControlRepositoriesTFVC

Properties

Name Type Description
objectId string SHA-1 hash of the item
gitObjectType string Type of Git object
commitId string Commit the item is associated with
path string Repository path of the item
isFolder boolean Whether the item is a folder
url string REST API URL for this item
content string Content of the item if requested
contentMetadata object Content metadata
latestProcessedChange object
View JSON Schema on GitHub

JSON Schema

microsoft-azure-repo-git-item-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-item-schema.json",
  "title": "GitItem",
  "description": "A file, folder, or submodule in a repository. Files are blobs, folders are trees, and submodules are commits.",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-repo-items-api-openapi.yml#/components/schemas/GitItem",
  "type": "object",
  "properties": {
    "objectId": {
      "type": "string",
      "description": "SHA-1 hash of the item"
    },
    "gitObjectType": {
      "type": "string",
      "enum": [
        "blob",
        "tree",
        "commit",
        "tag"
      ],
      "description": "Type of Git object"
    },
    "commitId": {
      "type": "string",
      "description": "Commit the item is associated with"
    },
    "path": {
      "type": "string",
      "description": "Repository path of the item"
    },
    "isFolder": {
      "type": "boolean",
      "description": "Whether the item is a folder"
    },
    "url": {
      "type": "string",
      "format": "uri",
      "description": "REST API URL for this item"
    },
    "content": {
      "type": "string",
      "description": "Content of the item if requested"
    },
    "contentMetadata": {
      "type": "object",
      "description": "Content metadata",
      "properties": {
        "encoding": {
          "type": "integer"
        },
        "contentType": {
          "type": "string"
        },
        "fileName": {
          "type": "string"
        },
        "extension": {
          "type": "string"
        }
      }
    },
    "latestProcessedChange": {
      "$ref": "#/$defs/GitCommitRef"
    }
  },
  "$defs": {
    "GitChange": {
      "type": "object",
      "description": "Represents a change to an item in a commit",
      "properties": {
        "changeId": {
          "type": "integer",
          "format": "int32",
          "description": "ID of the change within the group"
        },
        "changeType": {
          "type": "string",
          "enum": [
            "add",
            "edit",
            "delete",
            "rename",
            "merge",
            "lock",
            "branch",
            "rollback",
            "none"
          ],
          "description": "Type of change made to the item"
        },
        "item": {
          "type": "object",
          "description": "The affected item",
          "properties": {
            "objectId": {
              "type": "string"
            },
            "originalObjectId": {
              "type": "string"
            },
            "gitObjectType": {
              "type": "string"
            },
            "commitId": {
              "type": "string"
            },
            "path": {
              "type": "string"
            },
            "url": {
              "type": "string"
            }
          }
        },
        "originalPath": {
          "type": "string",
          "description": "Original path if the item was renamed"
        },
        "url": {
          "type": "string",
          "description": "URL to retrieve the item"
        }
      }
    },
    "GitCommitRef": {
      "type": "object",
      "description": "Properties describing a Git commit and associated metadata including author, committer, message, and related resources.",
      "properties": {
        "commitId": {
          "type": "string",
          "description": "SHA-1 hash of the commit"
        },
        "author": {
          "$ref": "#/$defs/GitUserDate"
        },
        "committer": {
          "$ref": "#/$defs/GitUserDate"
        },
        "comment": {
          "type": "string",
          "description": "Commit message"
        },
        "commentTruncated": {
          "type": "boolean",
          "description": "Whether the comment was truncated"
        },
        "changeCounts": {
          "type": "object",
          "description": "Counts of change types in the commit",
          "additionalProperties": {
            "type": "integer"
          }
        },
        "changes": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/GitChange"
          },
          "description": "List of changes in the commit"
        },
        "parents": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "SHA-1 hashes of parent commits"
        },
        "url": {
          "type": "string",
          "format": "uri",
          "description": "REST API URL for this commit"
        },
        "remoteUrl": {
          "type": "string",
          "format": "uri",
          "description": "Web URL to view the commit"
        },
        "statuses": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/GitStatus"
          },
          "description": "Status checks posted against this commit"
        },
        "workItems": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ResourceRef"
          },
          "description": "Linked work items"
        },
        "push": {
          "type": "object",
          "description": "Push that included this commit",
          "properties": {
            "pushId": {
              "type": "integer",
              "format": "int32"
            },
            "date": {
              "type": "string",
              "format": "date-time"
            },
            "pushedBy": {
              "$ref": "#/$defs/IdentityRef"
            },
            "url": {
              "type": "string",
              "format": "uri"
            }
          }
        }
      }
    },
    "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"
        }
      }
    },
    "GitUserDate": {
      "type": "object",
      "description": "User info and date for Git operations",
      "properties": {
        "name": {
          "type": "string",
          "description": "Name of the user"
        },
        "email": {
          "type": "string",
          "format": "email",
          "description": "Email address of the user"
        },
        "date": {
          "type": "string",
          "format": "date-time",
          "description": "Date of the Git operation"
        },
        "imageUrl": {
          "type": "string",
          "format": "uri",
          "description": "Avatar URL for the user"
        }
      }
    },
    "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"
        }
      }
    },
    "ResourceRef": {
      "type": "object",
      "description": "Generic reference to a resource",
      "properties": {
        "id": {
          "type": "string",
          "description": "Resource ID"
        },
        "url": {
          "type": "string",
          "format": "uri",
          "description": "Resource URL"
        }
      }
    }
  }
}

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-item"
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.