Swap Media
swap_mediaReplace original Wistia media with another while preserving its hashed ID and URLs, queued as a background job.
Instructions
Swap one media with another media. This operation queues a background job to replace the original media with the replacement media while preserving the original media's hashed ID and URLs.
Requires api token with one of the following permissions
Read, update & delete anythingTokens with the "Act with a team member's permissions" permission
(all:delegate_to_contact_permissions scope) can also be used. Requests
made with such a token are authorized using the permissions of the
contact assigned to the token.
An expiring access token
created with the all:delegate_to_contact_permissions scope can also be
used when its authorizations grant the update permission on both the
media being replaced and the replacement media. A replacement media the
token does not name is treated as not found.
Requires confirm=true for the requested mutation. May share access, notify people or incur provider charges.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | No | Named private Wistia account; selects credentials, not a remote account ID. | |
| confirm | No | Must be true for the specific user-requested write. | |
| payload | No | Complete JSON request body instead of body flags. Supports current nested customization, caption and nullable values. | |
| payload_file | No | Regular local JSON body file, at most 5 MB. Cannot be mixed with body flags or payload. | |
| media_hashed_id | Yes | The hashed ID of the media to be replaced. | |
| replacement_media_id | No | The hashed ID of the media that will replace the original media. Must be the same media type as the original. |