मुख्य सामग्री पर जाएं
DELETE
/
2
/
media
/
subtitles
मीडिया उपशीर्षक हटाएँ
curl --request DELETE \
  --url https://api.x.com/2/media/subtitles \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "id": "1146654567674912769",
  "language_code": "EN",
  "media_category": "TweetVideo"
}
'
{
  "data": {
    "deleted": true
  },
  "errors": [
    {
      "title": "<string>",
      "type": "<string>",
      "detail": "<string>",
      "status": 123
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://generaltranslation.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

प्राधिकरण

Authorization
string
header
आवश्यक

The access token received from the authorization server in the OAuth 2.0 flow.

बॉडी

application/json
id
string

इस Media का विशिष्ट पहचानकर्ता।

Pattern: ^[0-9]{1,19}$
उदाहरण:

"1146654567674912769"

language_code
string

भाषा कोड एक BCP47 कोड होना चाहिए (उदा. 'EN", "SP")

Pattern: ^[A-Z]{2}$
उदाहरण:

"EN"

media_category
enum<string>

अपलोड किए गए मीडिया की वह मीडिया श्रेणी, जिसमें उपशीर्षक जोड़े/हटाए जाने चाहिए

उपलब्ध विकल्प:
AmplifyVideo,
TweetVideo
उदाहरण:

"TweetVideo"

प्रतिक्रिया

अनुरोध सफल रहा।

data
object
errors
object[]
Minimum array length: 1

IETF RFC 7807 (https://tools.ietf.org/html/rfc7807) में परिभाषित एक HTTP Problem Details ऑब्जेक्ट।