मुख्य सामग्री पर जाएं
DELETE
/
2
/
account_activity
/
webhooks
/
{webhook_id}
/
subscriptions
/
{user_id}
/
all
सदस्यता हटाएँ
curl --request DELETE \
  --url https://api.x.com/2/account_activity/webhooks/{webhook_id}/subscriptions/{user_id}/all \
  --header 'Authorization: Bearer <token>'
{
  "data": {
    "subscribed": true
  },
  "errors": [
    {
      "title": "<string>",
      "type": "<string>",
      "detail": "<string>",
      "status": 123
    }
  ]
}

प्राधिकरण

Authorization
string
header
आवश्यक

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

पथ पैरामीटर

webhook_id
string
आवश्यक

वह वेबहुक ID जिसके लिए सदस्यता की जाँच करनी है। इस webhook कॉन्फ़िगरेशन का अद्वितीय पहचानकर्ता।

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

"1146654567674912769"

user_id
string
आवश्यक

वह उपयोगकर्ता ID जिसकी सदस्यता समाप्त करनी है। इस उपयोगकर्ता का विशिष्ट पहचानकर्ता। इसे स्ट्रिंग के रूप में लौटाया जाता है, ताकि उन भाषाओं और टूल्स से जुड़ी जटिलताओं से बचा जा सके जो बड़े पूर्णांकों को संभाल नहीं सकते।

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

"2244994945"

प्रतिक्रिया

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

data
object
errors
object[]
Minimum array length: 1

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