This method creates a video. When using this method, specify the title, size, and classification of the video to be created. Description is an optional field for this method.
Tip: See Adding a video to your listing in the eBay Seller Center for details about video formatting requirements and restrictions, or visit the relevant eBay site help pages for the region in which the listings will be posted.
When a video is successfully created, the method returns the HTTP Status Code
201 Created.The method also returns the location response header containing the video ID, which you can use to retrieve the video.
Note: There is no ability to edit metadata on videos at this time. There is also no method to delete videos.
To upload a created video, use the uploadVideo method.
This method has no URI parameters.
All requests made to eBay REST operations require you to provide the
Authorization HTTP header for authentication authorization.
In addition, this method requires you to include the Content-Type header and its value should be set to "application/json". See HTTP request headers- opens rest request components page for details.
This request requires an access token created with the authorization code grant flow, using one or more scopes from the following list (please check your Application Keys page for a list of OAuth scopes available to your application):
See OAuth access tokens for more information.
|classification||array of Classification|
The intended use for this video content. The video’s classification is used to associate the video with a user or seller. Currently, the classification of all videos should be set to
The description of the video.
The size, in bytes, of the video content.
The title of the video.
See HTTP response headers for details.
|Location||The created video resource location and the unique video ID.|
This call has no payload.
This call has no field definitions.
This call can return one of the following HTTP status codes. For an overview of the status codes, see HTTP status codes in Using eBay RESTful APIs.
|500||Internal Server Error|
For more on errors, plus the codes of other common errors, see Handling errors.
|190000||API_MEDIA||APPLICATION||There was a problem with an eBay internal system or process. Contact eBay developer support for assistance.|
|190002||API_MEDIA||REQUEST||Missing or invalid size. The size of the file (in bytes) is required.|
|190003||API_MEDIA||REQUEST||Maximum size exceeded for supported uploads. Please refer to the documentation.|
|190004||API_MEDIA||REQUEST||Title length limit has been exceeded. Please refer to the documentation.|
|190005||API_MEDIA||REQUEST||Description length exceeded. Please refer to the documentation.|
|190006||API_MEDIA||REQUEST||A video title is required.|
|190014||API_MEDIA||REQUEST||A video classification is required.|
|190016||API_MEDIA||REQUEST||Markups are not permitted in the video title.|
|190017||API_MEDIA||REQUEST||Markups are not permitted in the video description.|
This call has no warnings.
New to making API calls? Please see Making a Call.
Note: Identifiers, such as order IDs or user IDs, and personal data in these samples might be anonymized or may no longer be active on eBay. If necessary, substitute current, relevant eBay data in your requests.
This sample creates a video given a title, size, and classification as metadata.
The inputs are the title, size, classification, and (optionally) description.
The output is an HTTP status. If the call is successful, the video will be created and the video ID is returned in the Location header.