メインコンテンツへスキップ
PUT
/
2
/
activity
/
subscriptions
/
{subscription_id}
X アクティビティのサブスクリプションを更新
curl --request PUT \
  --url https://api.x.com/2/activity/subscriptions/{subscription_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "tag": "<string>",
  "webhook_id": "1146654567674912769"
}
'
{
  "data": {
    "total_subscriptions": 123
  }
}

承認

Authorization
string
header
必須

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

パスパラメータ

subscription_id
string
必須

更新するサブスクリプションの ID。 このサブスクリプションの一意の識別子。

Pattern: ^[0-9]{1,19}$
:

"1146654567674912769"

ボディ

application/json
tag
string
Required string length: 1 - 200
webhook_id
string

この Webhook 構成の一意の識別子。

Pattern: ^[0-9]{1,19}$
:

"1146654567674912769"

レスポンス

リクエストは成功しました。

data
object