Skip to docs content
Browse and search
On this page

Enable or disable one news source

PATCH/api/news/sources

Authorization

  • AuthorizationstringheaderrequiredBearer authentication with your TweetStream API key: Bearer <key>.

Body

  • enabledbooleanrequired
  • sourceIdstringrequired

Response fields

  • sourceobjectrequired
    • availablebooleanrequired
    • enabledbooleanrequired
    • iconstringrequired
    • idstringrequired
    • namestringrequired

Responses

  • 200Success
  • 400Invalid request
  • 401Missing or invalid API key
  • 403The authenticated account cannot use this capability
  • 409The source is not currently available
  • 500The request could not be completed