REST Resource: validator
Stay organized with collections
Save and categorize content based on your preferences.
Resource: ValidateError
A validation error identifies an issue in an XML or CSV metadata file that may cause an uploaded package that includes the file to fail. Note: You would upload the package via the Web, Aspera, or SFTP. The API call enables you to confirm that the metadata file is valid before uploading the package. See the YouTube Help Center
for more information about uploading content, including metadata files, to YouTube.
All rights reserved. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-20 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-20 UTC."],[[["\u003cp\u003eValidateError identifies issues in XML or CSV metadata files that could cause package upload failures.\u003c/p\u003e\n"],["\u003cp\u003eThe JSON representation of a ValidateError includes details like severity, message, line number, column number, column name, and message code.\u003c/p\u003e\n"],["\u003cp\u003eThe API provides methods to validate metadata files synchronously ([validate]) or asynchronously ([validateAsync]) and to check the status of asynchronous validations ([validateAsyncStatus]).\u003c/p\u003e\n"],["\u003cp\u003eYou can upload packages via Web, Aspera, or SFTP, and these metadata files are used in the uploading process.\u003c/p\u003e\n"],["\u003cp\u003eThe webpage also has links to the youtube help center for more information about uploading content.\u003c/p\u003e\n"]]],["`ValidateError` identifies issues in XML or CSV metadata files, which can cause package upload failures via Web, Aspera, or SFTP. Its JSON representation includes fields like `severity`, `message`, `lineNumber`, `columnNumber`, `columnName`, and `messageCode`. The API provides three methods: `validate` to check metadata files synchronously, `validateAsync` for asynchronous validation, and `validateAsyncStatus` to retrieve the status of an asynchronous validation. These check files prior to upload.\n"],null,["# REST Resource: validator\n\n- [Resource: ValidateError](#ValidateError)\n - [JSON representation](#ValidateError.SCHEMA_REPRESENTATION)\n- [Methods](#METHODS_SUMMARY)\n\nResource: ValidateError\n-----------------------\n\nA validation error identifies an issue in an XML or CSV metadata file that may cause an uploaded package that includes the file to fail. Note: You would upload the package via the Web, Aspera, or SFTP. The API call enables you to confirm that the metadata file is valid before uploading the package. See the [YouTube Help Center](https://support.google.com/youtube/topic/21002) for more information about uploading content, including metadata files, to YouTube.\n\n| JSON representation |\n|-------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"severity\": string, \"message\": string, \"lineNumber\": integer, \"columnNumber\": integer, \"columnName\": string, \"messageCode\": integer } ``` |\n\n| Fields ||\n|----------------|-----------------------------------------------------------------|\n| `severity` | `string` The error severity. |\n| `message` | `string` The error message. |\n| `lineNumber` | `integer` The line number where the error occurred (1-based). |\n| `columnNumber` | `integer` The column number where the error occurred (1-based). |\n| `columnName` | `string` The column name where the error occurred. |\n| `messageCode` | `integer` The code for the error message (if one exists). |\n\n| Methods ------- ||\n|---------------------------------------------------------------------------------------------|------------------------------------------|\n| ### [validate](/youtube/partner/reference/rest/v1/validator/validate) | Validate a metadata file. |\n| ### [validateAsync](/youtube/partner/reference/rest/v1/validator/validateAsync) | Validate a metadata file asynchronously. |\n| ### [validateAsyncStatus](/youtube/partner/reference/rest/v1/validator/validateAsyncStatus) | Get the asynchronous validation status. |"]]