Clear poster
const url = 'https://example.com/wp-json/wp2/media-converter/v1/attachments/1/thumbnails/poster';const options = {method: 'DELETE', headers: {'X-WP-Nonce': '<X-WP-Nonce>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url https://example.com/wp-json/wp2/media-converter/v1/attachments/1/thumbnails/poster \ --header 'X-WP-Nonce: <X-WP-Nonce>'Clears the assigned poster from the video attachment. Until a new poster is set, the player has no cover image.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Numeric entity id.
Responses
Section titled “Responses”Poster cleared; returns the current ThumbnailsDto.
object
Media library attachment ID.
Current attachment poster.
object
Poster attachment ID, or null.
Poster URL, or null.
Field “featured_id” as returned or accepted by PHP.
Generated child thumbnails.
object
Thumbnail attachment ID.
Thumbnail URL.
Examplegenerated
{ "attachment_id": 1, "poster": { "attachment_id": 1, "url": "example" }, "featured_id": 1, "thumbnails": [ { "attachment_id": 1, "url": "example" } ]}Not authenticated. WordPress REST: rest_not_logged_in / rest_forbidden. Use cookie + X-WP-Nonce or Application Password.
object
Machine-readable error or event code.
Message text (log, PIN, or password reset).
Extra WP_Error or license payload.
object
Examplegenerated
{ "code": "example", "message": "example", "data": {}}Insufficient capability or invalid REST nonce. WordPress REST: rest_forbidden / rest_cookie_invalid_nonce.
object
Machine-readable error or event code.
Message text (log, PIN, or password reset).
Extra WP_Error or license payload.
object
Examplegenerated
{ "code": "example", "message": "example", "data": {}}