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

Table: AddFileLabels

ParameterTypeRequiredDefaultStabilityDescription
Some arguments may be required, as indicated in the Required column. For return datatypes, this indicates that you must specify which fields you want returned in 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.