跳到文档正文
浏览和搜索
本页内容

修改 Ultra Speed 账号

按 handle 为各个账号开启或关闭 Ultra Speed。

POST/api/ultra/accounts

授权

  • Authorizationstringheader必填使用 TweetStream API 密钥进行 Bearer 认证:Bearer <key>。

请求头

  • Idempotency-Keystringheader必填必填。每次购买或变更生成一个 key,重试时沿用;相同的 key 返回相同的结果。

请求体

  • changesobject[]必填an array of at most 100 item(s)
    • enabledboolean必填
    • handlestring必填a string matching the pattern ^@?[A-Za-z0-9_]{1,15}$
  • subscriptionIdstring必填a string at most 128 character(s) long

响应字段

  • accountLimitinteger必填an integer
  • accountsobject[]必填
    • handlestring必填a string matching the pattern ^@?[A-Za-z0-9_]{1,15}$
    • idstring必填a string matching the pattern ^[1-9][0-9]{0,19}$
  • subscriptionIdstring必填
  • resultsobject[]必填
    • enabledboolean必填
    • handlestring必填a string matching the pattern ^@?[A-Za-z0-9_]{1,15}$
    • messagestring可选a string at most 200 character(s) long
    • outcomeenum<string>必填

响应

  • 200成功
  • 400请求无效、验证码错误,或未接受服务条款
  • 401API key 缺失或无效,或 setup proof 缺失或已过期
  • 404结账或链接不存在,或账号没有该产品的使用权
  • 409幂等键、结账、优惠或试用冲突
  • 429已达到速率限制或开通额度,请在 retryAfterSeconds 秒后重试
  • 503暂时不可用,请稍后重试