TeamCity REST API Reference 2024.07 Help

PinInfo

Specifies whether the build is pinned. Send PUT requests to the /app/rest/builds/BUILD_LOCATOR/pinInfo endpoint to pin or unpin builds.

Related Help article: Pinning Build

Properties

status

Returns true if the current object state is enabled (for example, pinned for build PinInfo or authorized for agent AuthorizedInfo; otherwise, false.

comment

Contains detailed information about current status value: the time it was set, the user who did it, and their personal notes on the event.This timestamp and the user data are automatically generated and cannot be changed.

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.

<pinInfo status="true"> <comment text="string" timestamp="string"> <user>[[[user...|user.html]]]</user> </comment> </pinInfo>
{ "comment" : { "text" : "text", "user" : "[[[user...|user.html]]]", "timestamp" : "timestamp" }, "status" : true }
Last modified: 04 July 2024