AddFileLabels is an input datatype for adding labels to a file. It's used by the addFileLabels() mutation field.

Table: AddFileLabels

ParameterTypeRequiredDefaultStabilityDescription
Some input parameters may be required, as indicated in the Required column. For return values, this indicates that you are assured a value if the field is requested for the results.
Table last updated: Nov 17, 2025
fileNamestringyes Long-TermThe name of the file.
labels[string]yes Long-TermThe labels for the file. There can be at most ten labels, each with a maximum length of sixty characters.
viewNameRepoOrViewNameyes Long-TermThe name of the view for the file. RepoOrViewName is a scalar.