CreateParserInputV2 is an input datatype for creating a parser. It's used by the createParserV2() mutation field.

Table: CreateParserInputV2

ParameterTypeRequiredDefaultStabilityAvailabilityDescription
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: Oct 14, 2026 
allowOverwritingExistingParserBoolean  Long-Term Allows saving a parser with a name that is already in use, by overwriting the parser that previously had the name.
fieldsToBeRemovedBeforeParsingStringyes Long-Term A list of fields that will be removed from the event before it's parsed. These fields will not be included when calculating usage.
fieldsToTagStringyes Long-Term Fields that are used as tags.
languageVersionLanguageVersionInputType  Long-Term A specific language version. See LanguageVersionInputType.
nameStringyes Long-Term The name to use for the parser.
repositoryNameRepoOrViewNameyes Long-Term The repository where the parser is located. RepoOrViewName is a scalar.
scriptStringyes Long-Term The parser script that is executed for every incoming event.
testCasesParserTestCaseInputyes Long-Term Test cases that can be used to help verify that the parser works as expected. See ParserTestCaseInput.