मुख्य सामग्री पर जाएं
PUT
/
2
/
webhooks
/
{webhook_id}
webhook सत्यापित करें
curl --request PUT \
  --url https://api.x.com/2/webhooks/{webhook_id} \
  --header 'Authorization: Bearer <token>'
{
  "data": {
    "attempted": 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"

प्रतिक्रिया

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

data
object
errors
object[]
Minimum array length: 1

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