Azure DevOps · Schema
GitPullRequest
An Azure DevOps Git pull request
AgileCI/CDDevOpsProject ManagementVersion Control
Properties
| Name | Type | Description |
|---|---|---|
| pullRequestId | integer | Unique numeric ID of the pull request |
| title | string | Title of the pull request |
| description | string | Description of the changes in this pull request |
| status | string | Current status of the pull request |
| createdBy | object | |
| creationDate | string | Date and time the pull request was created |
| closedDate | string | Date and time the pull request was completed or abandoned |
| targetRefName | string | Target branch for the merge |
| sourceRefName | string | Source branch containing the changes |
| mergeId | string | ID of the merge operation |
| mergeStatus | string | Current merge status |
| lastMergeSourceCommit | object | Latest commit in the source branch |
| lastMergeTargetCommit | object | Latest commit in the target branch |
| lastMergeCommit | object | The merge commit (if the PR has been merged) |
| reviewers | array | Reviewers assigned to this pull request |
| url | string | |
| repository | object | |
| isDraft | boolean | Whether this is a draft pull request |
| autoCompleteSetBy | object | |
| completionOptions | object | Options for auto-completing the PR |
| workItemRefs | array | Work items associated with this pull request |
| labels | array | Labels attached to this pull request |
| _links | object |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "#/components/schemas/GitPullRequest",
"title": "GitPullRequest",
"type": "object",
"description": "An Azure DevOps Git pull request",
"properties": {
"pullRequestId": {
"type": "integer",
"description": "Unique numeric ID of the pull request",
"example": 42
},
"title": {
"type": "string",
"description": "Title of the pull request",
"example": "Add new login feature"
},
"description": {
"type": "string",
"description": "Description of the changes in this pull request"
},
"status": {
"type": "string",
"description": "Current status of the pull request",
"enum": [
"notSet",
"active",
"abandoned",
"completed",
"all"
]
},
"createdBy": {
"$ref": "#/components/schemas/IdentityRef"
},
"creationDate": {
"type": "string",
"format": "date-time",
"description": "Date and time the pull request was created"
},
"closedDate": {
"type": "string",
"format": "date-time",
"description": "Date and time the pull request was completed or abandoned"
},
"targetRefName": {
"type": "string",
"description": "Target branch for the merge",
"example": "refs/heads/main"
},
"sourceRefName": {
"type": "string",
"description": "Source branch containing the changes",
"example": "refs/heads/feature/login"
},
"mergeId": {
"type": "string",
"format": "uuid",
"description": "ID of the merge operation"
},
"mergeStatus": {
"type": "string",
"description": "Current merge status",
"enum": [
"notSet",
"queued",
"conflicts",
"succeeded",
"rejectedByPolicy",
"failure"
]
},
"lastMergeSourceCommit": {
"type": "object",
"description": "Latest commit in the source branch",
"properties": {
"commitId": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri"
}
}
},
"lastMergeTargetCommit": {
"type": "object",
"description": "Latest commit in the target branch",
"properties": {
"commitId": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri"
}
}
},
"lastMergeCommit": {
"type": "object",
"description": "The merge commit (if the PR has been merged)",
"properties": {
"commitId": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri"
}
}
},
"reviewers": {
"type": "array",
"description": "Reviewers assigned to this pull request",
"items": {
"$ref": "#/components/schemas/IdentityRefWithVote"
}
},
"url": {
"type": "string",
"format": "uri"
},
"repository": {
"$ref": "#/components/schemas/GitRepository"
},
"isDraft": {
"type": "boolean",
"description": "Whether this is a draft pull request"
},
"autoCompleteSetBy": {
"$ref": "#/components/schemas/IdentityRef"
},
"completionOptions": {
"type": "object",
"description": "Options for auto-completing the PR",
"properties": {
"deleteSourceBranch": {
"type": "boolean"
},
"squashMerge": {
"type": "boolean"
},
"mergeStrategy": {
"type": "string",
"enum": [
"noFastForward",
"squash",
"rebase",
"rebaseMerge"
]
},
"transitionWorkItems": {
"type": "boolean"
}
}
},
"workItemRefs": {
"type": "array",
"description": "Work items associated with this pull request",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri"
}
}
}
},
"labels": {
"type": "array",
"description": "Labels attached to this pull request",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid"
},
"name": {
"type": "string"
},
"active": {
"type": "boolean"
}
}
}
},
"_links": {
"type": "object",
"additionalProperties": {
"type": "object",
"properties": {
"href": {
"type": "string",
"format": "uri"
}
}
}
}
}
}
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.
Call it yourself
curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/microsoft-azure-devops-gitpullrequest"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
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. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.