Definitions - Get Definition Revisions

Gets all revisions of a definition.

GET https://dev.azure.com/{organization}/{project}/_apis/build/definitions/{definitionId}/revisions?api-version=4.1

URI Parameters

Name In Required Type Description
definitionId
path True

integer

int32

The ID of the definition.

organization
path True

string

The name of the Azure DevOps organization.

project
path True

string

Project ID or project name

api-version
query True

string

Version of the API to use. This should be set to '4.1' to use this version of the api.

Responses

Name Type Description
200 OK

BuildDefinitionRevision[]

successful operation

Security

oauth2

Type: oauth2
Flow: accessCode
Authorization URL: https://app.vssps.visualstudio.com/oauth2/authorize&response_type=Assertion
Token URL: https://app.vssps.visualstudio.com/oauth2/token?client_assertion_type=urn:ietf:params:oauth:client-assertion-type:jwt-bearer&grant_type=urn:ietf:params:oauth:grant-type:jwt-bearer

Scopes

Name Description
vso.build Grants the ability to access build artifacts, including build results, definitions, and requests, and the ability to receive notifications about build events via service hooks.

Definitions

Name Description
AuditAction

The change type (add, edit, delete).

BuildDefinitionRevision

Represents a revision of a build definition.

IdentityRef
ReferenceLinks

The class to represent a collection of REST reference links.

AuditAction

The change type (add, edit, delete).

Name Type Description
add

string

delete

string

update

string

BuildDefinitionRevision

Represents a revision of a build definition.

Name Type Description
changeType

AuditAction

The change type (add, edit, delete).

changedBy

IdentityRef

The identity of the person or process that changed the definition.

changedDate

string

The date and time that the definition was changed.

comment

string

The comment associated with the change.

definitionUrl

string

A link to the definition at this revision.

name

string

The name of the definition.

revision

integer

The revision number.

IdentityRef

Name Type Description
_links

ReferenceLinks

This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject.

descriptor

string

The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations.

directoryAlias

string

displayName

string

This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider.

id

string

imageUrl

string

inactive

boolean

isAadIdentity

boolean

isContainer

boolean

profileUrl

string

uniqueName

string

url

string

This url is the full route to the source resource of this graph subject.

The class to represent a collection of REST reference links.

Name Type Description
links

object

The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only.