Update

Method: POST
URL: https://www.wellcomemat.com/api/media/update.php

Notes:

  1. If you specify customid but no hash, the video will be queried based on customid.

  2. If you specify both a customid and hash, the video identified by hash will have its customid updated.

  3. To replace a video, use the Upload request instead.

Parameters

KeyTypeDescription
keytext{{key}}
secrettext{{secret}}
hashtextMedia Hash
customidtextCustom/Listing ID. A Custom ID is a unique code you can use to more easily identify your video when connecting to WellcomeMat via our API. [Limit 256 characters]
titletext[Limit 100 characters]
descriptiontext[Limit 1500 characters]
keywordstextComma separated by keyword or phrase
  • Limit 10 keywords(“tags”) or phrases
  • Suggested: Limit 63 characters (including commas)
imagehashtextThis needs to refer to an image already assigned to this media
traffic_urltext
  • Point all viewers to a webpage where you have embedded your video
  • A warning will be returned if the video could not be found
distributetextDistribute to Service
  • Distributes to services configured by Connected Services
  • Options: youtube, facebook_page
  • Separate multiple services with a comma
default_photofileDefault Photo
  • Set the poster image that shows when your video loads
  • Accepts an image upload or publicly accessible image URL
  • Will take effect after video has encoded

Response

type MediaUpdateResponse = {
    success: 0 | 1 | "1";
    error: string;
    warnings: string | string[];
    media?: Media;
};