メインコンテンツへスキップ
POST
/
2
/
media
/
upload
/
{id}
/
append
メディアアップロードに追加
curl --request POST \
  --url https://api.x.com/2/media/upload/{id}/append \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "media": "<string>",
  "segment_index": 499
}
'
{
  "data": {
    "expires_at": 123
  },
  "errors": [
    {
      "title": "<string>",
      "type": "<string>",
      "detail": "<string>",
      "status": 123
    }
  ]
}

承認

Authorization
string
header
必須

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

パスパラメータ

id
string
必須

append 操作を実行する対象メディアの識別子です。 このメディアの一意の識別子です。

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

"1146654567674912769"

ボディ

media
file
必須

アップロードするファイル。

segment_index
必須

メディアアップロードのセグメント番号を表す整数値。

必須範囲: 0 <= x <= 999

レスポンス

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

メディアアップロードリクエストのステータス取得時に返されるレスポンス。

data
object
errors
object[]
Minimum array length: 1

IETF RFC 7807 (https://tools.ietf.org/html/rfc7807) で定義された HTTP Problem Details オブジェクト。