メインコンテンツへスキップ
POST
/
2
/
compliance
/
jobs
コンプライアンス ジョブを作成
curl --request POST \
  --url https://api.x.com/2/compliance/jobs \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "type": "tweets",
  "name": "my-job",
  "resumable": 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.

ボディ

application/json

新しいバッチコンプライアンスジョブを作成するリクエスト。

type
enum<string>
必須

取得するコンプライアンスジョブの種類。

利用可能なオプション:
tweets,
users
name
string

コンプライアンスジョブに対してユーザーが指定した名前。

Maximum string length: 64
:

"my-job"

resumable
boolean

true の場合、このエンドポイントは再開可能アップロードが有効な事前署名付き URL を返します。

レスポンス

リクエストは正常に完了しました。

data
object
errors
object[]
Minimum array length: 1

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