TeamCity REST API Reference 2025.11 Help

FileChange

The file changed by the specific commit.

Properties

before-revision

The revision a modified file had before the change.

after-revision

The revision a modified file obtained after the change.

changeType

Specifies the type of a file edit: added, removed, or edited.

changeTypeComment

file

The name of a modified file, including the relative repository path.

relative-file

The relative name of a modified file.

directory

Returns true if a modified entity is a directory instead of a file; otherwise, true.

Schema

Below, you can find a full schema of this object, in XML and JSON formats. You can choose what fields to submit depending on your current needs. Different methods might expect different fields: the best approach is to request this entity via GET and use the response as a base for the following POST request.

A link to another object implies that you can substitute it with the schema of the linked object, if it is required for your call.

<FileChange after-revision="42697188bbf4e4fdb5128b03f3c88e0da55a2dce" before-revision="a351752816bb639a5044570fa40ea00f7b311727" changeType="edited" changeTypeComment="string" directory="false" file="src/test/java/com/mycompany/app/AppTest.java" relative-file="src/test/java/com/mycompany/app/AppTest.java"/>
{ "changeTypeComment" : "changeTypeComment", "file" : "src/test/java/com/mycompany/app/AppTest.java", "relative-file" : "src/test/java/com/mycompany/app/AppTest.java", "after-revision" : "42697188bbf4e4fdb5128b03f3c88e0da55a2dce", "changeType" : "edited", "directory" : false, "before-revision" : "a351752816bb639a5044570fa40ea00f7b311727" }
Last modified: 02 December 2025