Skip to content

Commit 5f35646

Browse files
committed
Update documentation with latest OpenAPI spec
1 parent 051136d commit 5f35646

2 files changed

Lines changed: 19 additions & 3 deletions

File tree

openapi.json

Lines changed: 16 additions & 3 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.150",
5+
"version" : "2.151",
66
"title" : "X API v2",
77
"termsOfService" : "https://developer.x.com/en/developer-terms/agreement-and-policy.html",
88
"contact" : {
@@ -4748,8 +4748,8 @@
47484748
"tags" : [
47494749
"Tweets"
47504750
],
4751-
"summary" : "Create Post",
4752-
"description" : "Creates a new Post for the authenticated user.",
4751+
"summary" : "Create or Edit Post",
4752+
"description" : "Creates a new Post for the authenticated user, or edits an existing Post when edit_options are provided.",
47534753
"externalDocs" : {
47544754
"url" : "https://developer.x.com/en/docs/twitter-api/tweets/manage-tweets/api-reference/post-tweets"
47554755
},
@@ -18547,6 +18547,19 @@
1854718547
"type" : "string",
1854818548
"description" : "Link to take the conversation from the public timeline to a private Direct Message."
1854918549
},
18550+
"edit_options" : {
18551+
"type" : "object",
18552+
"description" : "Options for editing an existing Post. When provided, this request will edit the specified Post instead of creating a new one.",
18553+
"required" : [
18554+
"previous_post_id"
18555+
],
18556+
"properties" : {
18557+
"previous_post_id" : {
18558+
"$ref" : "#/components/schemas/TweetId"
18559+
}
18560+
},
18561+
"additionalProperties" : false
18562+
},
1855018563
"for_super_followers_only" : {
1855118564
"type" : "boolean",
1855218565
"description" : "Exclusive Tweet for super followers.",
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
openapi: post /2/tweets
3+
---

0 commit comments

Comments
 (0)