File
A file or a directory associated with, for instance, a published artifact.
Properties
name
The public file name.
fullName
The full name of a file, including all special characters omitted in the name property. Can be equal to name.
size
The file size in bytes.
modificationTime
Returns the last time this file was edited.
href
The link to file metadata object.
parent
Returns a File object that is a directory or an archive that owns this file, or null if no such File exists. Files inside archives and directories can be accessed like following: /app/rest/builds/id:12345/artifacts/metadata/result.zip%21/myFile.txt.
content
The relative (without TeamCity server URL) link that allows you to read the contents of a file.
children
Returns the collection of files owned by this archive or directory, or null if this File is neither.
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.