मुख्य सामग्री पर जाएं
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

नया batch compliance job बनाने के लिए अनुरोध।

type
enum<string>
आवश्यक

सूचीबद्ध करने के लिए compliance job का type।

उपलब्ध विकल्प:
tweets,
users
name
string

कंप्लायंस जॉब के लिए उपयोगकर्ता द्वारा दिया गया नाम।

Maximum string length: 64
उदाहरण:

"my-job"

resumable
boolean

यदि true है, तो यह endpoint resumable uploads सक्षम होने के साथ एक pre-signed URL लौटाएगा।

प्रतिक्रिया

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

data
object
errors
object[]
Minimum array length: 1

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