REST Resource: validator

  • ValidateError identifies issues in XML or CSV metadata files that could cause package upload failures.

  • The JSON representation of a ValidateError includes details like severity, message, line number, column number, column name, and message code.

  • The API provides methods to validate metadata files synchronously ([validate]) or asynchronously ([validateAsync]) and to check the status of asynchronous validations ([validateAsyncStatus]).

  • You can upload packages via Web, Aspera, or SFTP, and these metadata files are used in the uploading process.

  • The webpage also has links to the youtube help center for more information about uploading content.

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.

JSON representation
 { 
 "severity" 
 : 
 string 
 , 
 "message" 
 : 
 string 
 , 
 "lineNumber" 
 : 
 integer 
 , 
 "columnNumber" 
 : 
 integer 
 , 
 "columnName" 
 : 
 string 
 , 
 "messageCode" 
 : 
 integer 
 } 
Fields
severity

string

The error severity.

message

string

The error message.

lineNumber

integer

The line number where the error occurred (1-based).

columnNumber

integer

The column number where the error occurred (1-based).

columnName

string

The column name where the error occurred.

messageCode

integer

The code for the error message (if one exists).

Methods

validate

Validate a metadata file.

validateAsync

Validate a metadata file asynchronously.

validateAsyncStatus

Get the asynchronous validation status.
Design a Mobile Site
View Site in Mobile | Classic
Share by: