Skip to content

Clear poster

DELETE
/wp-json/wp2/media-converter/v1/attachments/{id}/thumbnails/poster
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.

id
required
integer

Numeric entity id.

Poster cleared; returns the current ThumbnailsDto.

Media typeapplication/json
object
attachment_id

Media library attachment ID.

integer
poster

Current attachment poster.

object
attachment_id

Poster attachment ID, or null.

integer
nullable
url

Poster URL, or null.

string
nullable
featured_id

Field “featured_id” as returned or accepted by PHP.

integer
nullable
thumbnails

Generated child thumbnails.

Array<object>
object
attachment_id

Thumbnail attachment ID.

integer
url

Thumbnail URL.

string
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.

Media typeapplication/json
object
code

Machine-readable error or event code.

string
message

Message text (log, PIN, or password reset).

string
data

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.

Media typeapplication/json
object
code

Machine-readable error or event code.

string
message

Message text (log, PIN, or password reset).

string
data

Extra WP_Error or license payload.

object
Examplegenerated
{
"code": "example",
"message": "example",
"data": {}
}