Method: validator.validate

validator.validate a metadata file.

HTTP request

POST https://youtubepartner.googleapis.com/youtube/partner/v1/validator

The URL uses gRPC Transcoding syntax.

Query parameters

Parameters
onBehalfOfContentOwner

string

The onBehalfOfContentOwner parameter identifies the content owner that the user is acting on behalf of. This parameter supports users whose accounts are associated with multiple content owners.

Request body

The request body contains an instance of ValidateRequest.

Response body

Response from validation request.

If successful, the response body contains data with the following structure:

JSON representation
{
  "status": string,
  "errors": [
    {
      object (ValidateError)
    }
  ],
  "kind": string
}
Fields
status

string

The validation status.

errors[]

object (ValidateError)

The list of errors and/or warnings.

kind

string

The type of the API resource. For this operation, the value is youtubePartner#validateResponse.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/youtubepartner

For more information, see the OAuth 2.0 Overview.

ValidateRequest

Request to validate content.

JSON representation
{
  "uploaderName": string,
  "content": string,
  "locale": string,
  "kind": string
}
Fields
uploaderName

string

The uploader name.

content

string

The metadata file contents.

locale

string

The desired locale of the error messages as defined in BCP 47 (http: //tools.ietf.org/html/bcp47). For example, "en-US" or "de". If not // specified we will return the error messages in English ("en").

kind

string

The type of the API resource. For this operation, the value is youtubePartner#validateRequest.