TeamCity REST API Reference 2026.2 Help

Comment

A timestamped message with an optional author. Used throughout the API to record who performed an action and when — for example, who muted a test, commented on a build, or authorized an agent.

Properties

timestamp

The date and time when this comment was created.

text

The comment text. Absent if no text was provided.

user

The TeamCity user who authored this comment. May be absent if the action was performed by the system.

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.

<comment text="Muted due to known flakiness" timestamp="20260401T013826+0200"> <user email="johndoe@example.com" enabled2FA="false" hasPassword="true" href="/app/rest/users/id:11" id="1" lastLogin="20241001T155514+0200" locator="null" name="John Doe" password="foobar" realm="string" username="johndoe"> <properties>[[[properties...|properties.html]]]</properties> <roles>[[[roleAssignments...|roleassignments.html]]]</roles> <groups>[[[groups...|groups.html]]]</groups> <avatars>[[[userAvatars...|useravatars.html]]]</avatars> </user> </comment>
{ "text" : "Muted due to known flakiness", "user" : "[[[user...|user.html]]]", "timestamp" : "20260401T013826+0200" }
Last modified: 18 August 2026