Skip to content

Commit f73709c

Browse files
committed
Update documentation with latest OpenAPI spec
1 parent 51dd8fd commit f73709c

File tree

1 file changed

+5
-80
lines changed

1 file changed

+5
-80
lines changed

openapi.json

Lines changed: 5 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"openapi" : "3.0.0",
33
"info" : {
44
"description" : "X API v2 available endpoints",
5-
"version" : "2.154",
5+
"version" : "2.155",
66
"title" : "X API v2",
77
"termsOfService" : "https://developer.x.com/en/developer-terms/agreement-and-policy.html",
88
"contact" : {
@@ -710,64 +710,6 @@
710710
}
711711
}
712712
},
713-
"/2/ai_trends/{id}" : {
714-
"get" : {
715-
"security" : [
716-
{
717-
"BearerToken" : [ ]
718-
}
719-
],
720-
"tags" : [
721-
"Trends"
722-
],
723-
"summary" : "Get AI Trends by ID",
724-
"description" : "Retrieves an AI trend by its ID.",
725-
"operationId" : "getAiTrends",
726-
"parameters" : [
727-
{
728-
"name" : "id",
729-
"in" : "path",
730-
"description" : "The ID of the ai trend.",
731-
"required" : true,
732-
"example" : "119929381293",
733-
"schema" : {
734-
"$ref" : "#/components/schemas/AiTrendId"
735-
},
736-
"style" : "simple"
737-
},
738-
{
739-
"$ref" : "#/components/parameters/NewsFieldsParameter"
740-
}
741-
],
742-
"responses" : {
743-
"200" : {
744-
"description" : "The request has succeeded.",
745-
"content" : {
746-
"application/json" : {
747-
"schema" : {
748-
"$ref" : "#/components/schemas/Get2AiTrendsIdResponse"
749-
}
750-
}
751-
}
752-
},
753-
"default" : {
754-
"description" : "The request has failed.",
755-
"content" : {
756-
"application/json" : {
757-
"schema" : {
758-
"$ref" : "#/components/schemas/Error"
759-
}
760-
},
761-
"application/problem+json" : {
762-
"schema" : {
763-
"$ref" : "#/components/schemas/Problem"
764-
}
765-
}
766-
}
767-
}
768-
}
769-
}
770-
},
771713
"/2/communities/search" : {
772714
"get" : {
773715
"security" : [
@@ -12575,12 +12517,6 @@
1257512517
"description" : "The sum of results returned in this response.",
1257612518
"format" : "int32"
1257712519
},
12578-
"AiTrendId" : {
12579-
"type" : "string",
12580-
"description" : "Unique identifier of ai trend.",
12581-
"pattern" : "^[0-9]{1,19}$",
12582-
"example" : "2244994945"
12583-
},
1258412520
"AllProjectClientApps" : {
1258512521
"type" : "array",
1258612522
"description" : "Client App Rule Counts for all applications in the project",
@@ -14099,21 +14035,6 @@
1409914035
}
1410014036
]
1410114037
},
14102-
"Get2AiTrendsIdResponse" : {
14103-
"type" : "object",
14104-
"properties" : {
14105-
"data" : {
14106-
"$ref" : "#/components/schemas/News"
14107-
},
14108-
"errors" : {
14109-
"type" : "array",
14110-
"minItems" : 1,
14111-
"items" : {
14112-
"$ref" : "#/components/schemas/Problem"
14113-
}
14114-
}
14115-
}
14116-
},
1411714038
"Get2CommunitiesIdResponse" : {
1411814039
"type" : "object",
1411914040
"properties" : {
@@ -19764,6 +19685,10 @@
1976419685
"in_reply_to_tweet_id"
1976519686
],
1976619687
"properties" : {
19688+
"auto_populate_reply_metadata" : {
19689+
"type" : "boolean",
19690+
"description" : "If set to true, reply metadata will be automatically populated."
19691+
},
1976719692
"exclude_reply_user_ids" : {
1976819693
"type" : "array",
1976919694
"description" : "A list of User Ids to be excluded from the reply Tweet.",

0 commit comments

Comments
 (0)