Stream Connections
Terminate All Connections
Terminates all active streaming connections for the authenticated application.
DELETE
/
2
/
connections
/
all
xurl
xurl -X DELETE /2/connections/allimport os
from xdk import Client
client = Client(bearer_token=os.environ["X_BEARER_TOKEN"])
response = client.connections.delete_all()
print(response)import { Client } from "@xdevplatform/xdk";
const client = new Client({ bearerToken: process.env.X_BEARER_TOKEN });
const response = await client.connections.deleteAll();
console.log(response);import com.x.xdk.XClient;
XClient client = XClient.builder()
.bearerToken(System.getenv("X_BEARER_TOKEN"))
.build();
var response = client.connections().deleteAll();
System.out.println(response);using System;
using Xdk;
using var client = new XClient(new XClientOptions
{
BearerToken = Environment.GetEnvironmentVariable("X_BEARER_TOKEN"),
});
var response = await client.Connections.DeleteAllAsync();
Console.WriteLine(response);{
"data": {
"failed_kills": 123,
"successful_kills": 123,
"results": [
{
"success": true,
"uuid": "<string>",
"error_message": "<string>"
}
]
},
"errors": [
{
"detail": "<string>",
"resource_type": "<string>",
"title": "<string>",
"type": "https://api.x.com/2/problems/resource-not-found",
"parameter": "<string>",
"resource_id": "<string>",
"status": 123,
"value": "<string>"
}
]
}{
"code": 123,
"message": "<string>"
}Authorizations
Response
The request has succeeded.
- Option 1
- Option 2
- Option 3
- Option 4
- Option 5
- Option 6
- Option 7
- Option 8
- Option 9
- Option 10
- Option 11
- Option 12
- Option 13
- Option 14
- Option 15
- Option 16
- Option 17
- Option 18
- Option 19
- Option 20
- Option 21
- Option 22
- Option 23
- Option 24
- Option 25
- Option 26
- Option 27
- Option 28
- Option 29
- Option 30
- Option 31
- Option 32
- Option 33
- Option 34
- Option 35
- Option 36
- Option 37
- Option 38
- Option 39
- Option 40
- Option 41
- Option 42
- Option 43
- Option 44
- Option 45
- Option 46
- Option 47
- Option 48
- Option 49
- Option 50
- Option 51
- Option 52
- Option 53
- Option 54
- Option 55
- Option 56
- Option 57
- Option 58
- Option 59
- Option 60
- Option 61
Show child attributes
Show child attributes
⌘I
xurl
xurl -X DELETE /2/connections/allimport os
from xdk import Client
client = Client(bearer_token=os.environ["X_BEARER_TOKEN"])
response = client.connections.delete_all()
print(response)import { Client } from "@xdevplatform/xdk";
const client = new Client({ bearerToken: process.env.X_BEARER_TOKEN });
const response = await client.connections.deleteAll();
console.log(response);import com.x.xdk.XClient;
XClient client = XClient.builder()
.bearerToken(System.getenv("X_BEARER_TOKEN"))
.build();
var response = client.connections().deleteAll();
System.out.println(response);using System;
using Xdk;
using var client = new XClient(new XClientOptions
{
BearerToken = Environment.GetEnvironmentVariable("X_BEARER_TOKEN"),
});
var response = await client.Connections.DeleteAllAsync();
Console.WriteLine(response);{
"data": {
"failed_kills": 123,
"successful_kills": 123,
"results": [
{
"success": true,
"uuid": "<string>",
"error_message": "<string>"
}
]
},
"errors": [
{
"detail": "<string>",
"resource_type": "<string>",
"title": "<string>",
"type": "https://api.x.com/2/problems/resource-not-found",
"parameter": "<string>",
"resource_id": "<string>",
"status": 123,
"value": "<string>"
}
]
}{
"code": 123,
"message": "<string>"
}