The UpdateParserInputV2 is used to provide input for updating a parser. This datatype includes various settings.

Table: UpdateParserInputV2

ParameterTypeRequired[a]DefaultDescription
repositoryNameRepoOrViewNameyes The repository where the parser is located. This is a scalar.
idstringyes The unique identifier of the parser to update.
namestring  The name to use for the parser.
scriptUpdateParserScriptInput  Input for updating the parser script. See UpdateParserScriptInput Table.
testData[string]yes Test events that can be parsed by the parser.
testCases[ParserTestCaseInput]yes Test cases that can be used to help verify that the parser works as expected. See ParserTestCaseInput Table.
fieldsToTag[string]  Fields that are used as tags.
fieldsToBeRemovedBeforeParsing[string]yes A list of fields that will be removed from the event before it's parsed. These fields will not be included when calculating usage.

[a] Some arguments may be required, as indicated in this column. For some fields, this column indicates that a result will always be returned for it.