> ## Documentation Index
> Fetch the complete documentation index at: https://generaltranslation.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# पोस्ट बनाएँ या संपादित करें

> प्रमाणीकृत उपयोगकर्ता के लिए एक नई पोस्ट बनाता है, या edit_options दिए जाने पर किसी मौजूदा पोस्ट को संपादित करता है।



## OpenAPI

````yaml /hi/openapi.json POST /2/tweets
openapi: 3.0.0
info:
  description: X API v2 के उपलब्ध एंडपॉइंट्स
  version: '2.157'
  title: X API v2
  termsOfService: https://developer.x.com/en/developer-terms/agreement-and-policy.html
  contact:
    name: X Developers
    url: https://developer.x.com/
  license:
    name: X Developer Agreement and Policy
    url: https://developer.x.com/en/developer-terms/agreement-and-policy.html
servers:
  - description: X API
    url: https://api.x.com
security: []
tags:
  - name: Account Activity
    description: AAA सदस्यताओं को प्राप्त करने और प्रबंधित करने से संबंधित एंडपॉइंट
    externalDocs:
      description: और जानें
      url: >-
        https://docs.x.com/x-api/enterprise-gnip-2.0/fundamentals/account-activity
  - name: Bookmarks
    description: >-
      किसी उपयोगकर्ता के बुकमार्क प्राप्त करने और प्रबंधित करने से संबंधित
      एंडपॉइंट
    externalDocs:
      description: और जानें
      url: https://developer.twitter.com/en/docs/twitter-api/bookmarks
  - name: Compliance
    description: आपके सिस्टम में X डेटा को अनुपालक बनाए रखने से संबंधित एंडपॉइंट
    externalDocs:
      description: और जानें
      url: >-
        https://developer.twitter.com/en/docs/twitter-api/compliance/batch-tweet/introduction
  - name: Connections
    description: स्ट्रीमिंग कनेक्शनों से संबंधित एंडपॉइंट
    externalDocs:
      description: और जानें
      url: https://developer.x.com/en/docs/x-api/connections
  - name: Direct Messages
    description: Direct Messages को प्राप्त करने और प्रबंधित करने से संबंधित एंडपॉइंट
    externalDocs:
      description: और जानें
      url: https://developer.twitter.com/en/docs/twitter-api/direct-messages
  - name: General
    description: सामान्य API कार्यक्षमता के लिए विविध एंडपॉइंट
    externalDocs:
      description: और जानें
      url: https://developer.twitter.com/en/docs/twitter-api
  - name: Lists
    description: सूचियों को प्राप्त करने और प्रबंधित करने से संबंधित एंडपॉइंट
    externalDocs:
      description: और जानें
      url: https://developer.twitter.com/en/docs/twitter-api/lists
  - name: Media
    description: Media से संबंधित एंडपॉइंट
    externalDocs:
      description: और जानें
      url: https://developer.x.com
  - name: MediaUpload
    description: Media अपलोड करने से संबंधित एंडपॉइंट
    externalDocs:
      description: और जानें
      url: https://developer.x.com
  - name: News
    description: समाचार स्टोरीज़ प्राप्त करने के लिए एंडपॉइंट
    externalDocs:
      description: और जानें
      url: https://developer.twitter.com/en/docs/twitter-api/news
  - name: Spaces
    description: Spaces को प्राप्त करने और प्रबंधित करने से संबंधित एंडपॉइंट
    externalDocs:
      description: और जानें
      url: https://developer.twitter.com/en/docs/twitter-api/spaces
  - name: Stream
    description: स्ट्रीमिंग से संबंधित एंडपॉइंट
    externalDocs:
      description: और जानें
      url: https://developer.x.com
  - name: Tweets
    description: Tweets को प्राप्त करने, खोजने और संशोधित करने से संबंधित एंडपॉइंट
    externalDocs:
      description: और जानें
      url: https://developer.twitter.com/en/docs/twitter-api/tweets/lookup
  - name: Users
    description: Users के संबंधों को प्राप्त करने और प्रबंधित करने से संबंधित एंडपॉइंट
    externalDocs:
      description: और जानें
      url: https://developer.twitter.com/en/docs/twitter-api/users/lookup
paths:
  /2/tweets:
    post:
      tags:
        - Tweets
      summary: पोस्ट बनाएँ या संपादित करें
      description: >-
        प्रमाणीकृत उपयोगकर्ता के लिए एक नई पोस्ट बनाता है, या edit_options दिए
        जाने पर किसी मौजूदा पोस्ट को संपादित करता है।
      operationId: createPosts
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TweetCreateRequest'
        required: true
      responses:
        '201':
          description: अनुरोध सफल रहा है।
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TweetCreateResponse'
        default:
          description: अनुरोध विफल रहा है।
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
      security:
        - OAuth2UserToken:
            - tweet.read
            - tweet.write
            - users.read
        - UserToken: []
      externalDocs:
        url: >-
          https://developer.x.com/en/docs/twitter-api/tweets/manage-tweets/api-reference/post-tweets
components:
  schemas:
    TweetCreateRequest:
      type: object
      properties:
        card_uri:
          type: string
          description: >-
            Card Uri पैरामीटर। यह Quote Tweet Id, Poll, Media और Direct Message
            Deep Link के साथ mutually exclusive है।
        community_id:
          $ref: '#/components/schemas/CommunityId'
        direct_message_deep_link:
          type: string
          description: >-
            बातचीत को सार्वजनिक timeline से निजी Direct Message में ले जाने का
            लिंक।
        edit_options:
          type: object
          description: >-
            किसी मौजूदा पोस्ट को संपादित करने के विकल्प। दिए जाने पर, यह अनुरोध
            नया पोस्ट बनाने के बजाय निर्दिष्ट पोस्ट को संपादित करेगा।
          required:
            - previous_post_id
          properties:
            previous_post_id:
              $ref: '#/components/schemas/TweetId'
          additionalProperties: false
        for_super_followers_only:
          type: boolean
          description: Super followers के लिए exclusive Tweet।
          default: false
        geo:
          type: object
          description: जियोलोकेशन के लिए Tweet से जोड़ा जा रहा Place ID।
          properties:
            place_id:
              type: string
          additionalProperties: false
        media:
          type: object
          description: >-
            बनाए जा रहे Tweet से जोड़ी जा रही media जानकारी। यह Quote Tweet Id,
            Poll और Card URI के साथ mutually exclusive है।
          required:
            - media_ids
          properties:
            media_ids:
              type: array
              description: बनाए जा रहे Tweet से जोड़ी जाने वाली Media Ids की सूची।
              minItems: 1
              maxItems: 4
              items:
                $ref: '#/components/schemas/MediaId'
            tagged_user_ids:
              type: array
              description: >-
                बनाए जा रहे Tweet की media में टैग किए जाने वाले User Ids की
                सूची।
              minItems: 0
              maxItems: 10
              items:
                $ref: '#/components/schemas/UserId'
          additionalProperties: false
        nullcast:
          type: boolean
          description: >-
            Nullcasted (केवल promoted) पोस्ट्स सार्वजनिक timeline में दिखाई नहीं
            देते और फ़ॉलोअर्स को नहीं दिखाए जाते।
          default: false
        poll:
          type: object
          description: >-
            poll वाले Tweet के लिए poll विकल्प। यह Media, Quote Tweet Id और Card
            URI के साथ mutually exclusive है।
          required:
            - options
            - duration_minutes
          properties:
            duration_minutes:
              type: integer
              description: मिनटों में poll की अवधि।
              minimum: 5
              maximum: 10080
              format: int32
            options:
              type: array
              minItems: 2
              maxItems: 4
              items:
                type: string
                description: poll विकल्प का टेक्स्ट।
                minLength: 1
                maxLength: 25
            reply_settings:
              type: string
              description: यह बताने वाली सेटिंग्स कि Tweet का जवाब कौन दे सकता है।
              enum:
                - following
                - mentionedUsers
                - subscribers
                - verified
          additionalProperties: false
        quote_tweet_id:
          $ref: '#/components/schemas/TweetId'
        reply:
          type: object
          description: जिस Tweet का जवाब दिया जा रहा है, उसकी Tweet जानकारी।
          required:
            - in_reply_to_tweet_id
          properties:
            auto_populate_reply_metadata:
              type: boolean
              description: >-
                यदि true पर सेट किया गया है, तो reply metadata अपने-आप भर दिया
                जाएगा।
            exclude_reply_user_ids:
              type: array
              description: reply Tweet से बाहर रखे जाने वाले User Ids की सूची।
              items:
                $ref: '#/components/schemas/UserId'
            in_reply_to_tweet_id:
              $ref: '#/components/schemas/TweetId'
          additionalProperties: false
        reply_settings:
          type: string
          description: यह बताने वाली सेटिंग कि Tweet का जवाब कौन दे सकता है।
          enum:
            - following
            - mentionedUsers
            - subscribers
            - verified
        share_with_followers:
          type: boolean
          description: कम्युनिटी पोस्ट को फ़ॉलोअर्स के साथ भी साझा करें।
          default: false
        text:
          $ref: '#/components/schemas/TweetText'
      additionalProperties: false
    TweetCreateResponse:
      type: object
      properties:
        data:
          type: object
          required:
            - id
            - text
          properties:
            id:
              $ref: '#/components/schemas/TweetId'
            text:
              $ref: '#/components/schemas/TweetText'
        errors:
          type: array
          minItems: 1
          items:
            $ref: '#/components/schemas/Problem'
    Error:
      type: object
      required:
        - code
        - message
      properties:
        code:
          type: integer
          format: int32
        message:
          type: string
    Problem:
      type: object
      description: >-
        IETF RFC 7807 (https://tools.ietf.org/html/rfc7807) में परिभाषित एक HTTP
        Problem Details ऑब्जेक्ट।
      required:
        - type
        - title
      properties:
        detail:
          type: string
        status:
          type: integer
        title:
          type: string
        type:
          type: string
      discriminator:
        propertyName: type
        mapping:
          about:blank:
            $ref: '#/components/schemas/GenericProblem'
          https://api.twitter.com/2/problems/client-disconnected:
            $ref: '#/components/schemas/ClientDisconnectedProblem'
          https://api.twitter.com/2/problems/client-forbidden:
            $ref: '#/components/schemas/ClientForbiddenProblem'
          https://api.twitter.com/2/problems/conflict:
            $ref: '#/components/schemas/ConflictProblem'
          https://api.twitter.com/2/problems/disallowed-resource:
            $ref: '#/components/schemas/DisallowedResourceProblem'
          https://api.twitter.com/2/problems/duplicate-rules:
            $ref: '#/components/schemas/DuplicateRuleProblem'
          https://api.twitter.com/2/problems/invalid-request:
            $ref: '#/components/schemas/InvalidRequestProblem'
          https://api.twitter.com/2/problems/invalid-rules:
            $ref: '#/components/schemas/InvalidRuleProblem'
          https://api.twitter.com/2/problems/noncompliant-rules:
            $ref: '#/components/schemas/NonCompliantRulesProblem'
          https://api.twitter.com/2/problems/not-authorized-for-field:
            $ref: '#/components/schemas/FieldUnauthorizedProblem'
          https://api.twitter.com/2/problems/not-authorized-for-resource:
            $ref: '#/components/schemas/ResourceUnauthorizedProblem'
          https://api.twitter.com/2/problems/operational-disconnect:
            $ref: '#/components/schemas/OperationalDisconnectProblem'
          https://api.twitter.com/2/problems/resource-not-found:
            $ref: '#/components/schemas/ResourceNotFoundProblem'
          https://api.twitter.com/2/problems/resource-unavailable:
            $ref: '#/components/schemas/ResourceUnavailableProblem'
          https://api.twitter.com/2/problems/rule-cap:
            $ref: '#/components/schemas/RulesCapProblem'
          https://api.twitter.com/2/problems/streaming-connection:
            $ref: '#/components/schemas/ConnectionExceptionProblem'
          https://api.twitter.com/2/problems/unsupported-authentication:
            $ref: '#/components/schemas/UnsupportedAuthenticationProblem'
          https://api.twitter.com/2/problems/usage-capped:
            $ref: '#/components/schemas/UsageCapExceededProblem'
    CommunityId:
      type: string
      description: इस Community का अद्वितीय पहचानकर्ता।
      pattern: ^[0-9]{1,19}$
      example: '1146654567674912769'
    TweetId:
      type: string
      description: >-
        इस Tweet का विशिष्ट पहचानकर्ता। इसे स्ट्रिंग के रूप में लौटाया जाता है,
        ताकि उन भाषाओं और टूल्स में जटिलताओं से बचा जा सके जो बड़े पूर्णांकों को
        संभाल नहीं सकते।
      pattern: ^[0-9]{1,19}$
      example: '1346889436626259968'
    MediaId:
      type: string
      description: इस Media का विशिष्ट पहचानकर्ता।
      pattern: ^[0-9]{1,19}$
      example: '1146654567674912769'
    UserId:
      type: string
      description: >-
        इस उपयोगकर्ता का विशिष्ट पहचानकर्ता। इसे स्ट्रिंग के रूप में लौटाया जाता
        है, ताकि उन भाषाओं और टूल्स से जुड़ी जटिलताओं से बचा जा सके जो बड़े
        पूर्णांकों को संभाल नहीं सकते।
      pattern: ^[0-9]{1,19}$
      example: '2244994945'
    TweetText:
      type: string
      description: Tweet की सामग्री।
      example: >-
        Learn how to use the user Tweet timeline and user mention timeline
        endpoints in the X API v2 to explore Tweet\u2026
        https:\/\/t.co\/56a0vZUx7i
    GenericProblem:
      description: >-
        एक सामान्य समस्या, जिसमें HTTP स्टेटस कोड द्वारा दी गई जानकारी के
        अतिरिक्त कोई और जानकारी नहीं होती।
      allOf:
        - $ref: '#/components/schemas/Problem'
    ClientDisconnectedProblem:
      description: आपका क्लाइंट डिस्कनेक्ट हो गया है।
      allOf:
        - $ref: '#/components/schemas/Problem'
    ClientForbiddenProblem:
      description: >-
        ऐसी समस्या जो दर्शाती है कि आपका क्लाइंट यह अनुरोध करने के लिए अधिकृत
        नहीं है।
      allOf:
        - $ref: '#/components/schemas/Problem'
        - type: object
          properties:
            reason:
              type: string
              enum:
                - official-client-forbidden
                - client-not-enrolled
            registration_url:
              type: string
              format: uri
    ConflictProblem:
      description: यदि एक जॉब पहले से प्रगति में है, तो आप नई जॉब नहीं बना सकते।
      allOf:
        - $ref: '#/components/schemas/Problem'
    DisallowedResourceProblem:
      description: >-
        एक Problem जो दर्शाता है कि अनुरोधित resource इस API के सिद्धांतों का
        उल्लंघन करता है।
      allOf:
        - $ref: '#/components/schemas/Problem'
        - type: object
          required:
            - resource_id
            - resource_type
            - section
          properties:
            resource_id:
              type: string
            resource_type:
              type: string
              enum:
                - user
                - tweet
                - media
                - list
                - space
            section:
              type: string
              enum:
                - data
                - includes
    DuplicateRuleProblem:
      description: आपके द्वारा सबमिट किया गया नियम डुप्लिकेट है।
      allOf:
        - $ref: '#/components/schemas/Problem'
        - type: object
          properties:
            id:
              type: string
            value:
              type: string
    InvalidRequestProblem:
      description: ऐसी समस्या, जो बताती है कि यह अनुरोध अमान्य है।
      allOf:
        - $ref: '#/components/schemas/Problem'
        - type: object
          properties:
            errors:
              type: array
              minItems: 1
              items:
                type: object
                properties:
                  message:
                    type: string
                  parameters:
                    type: object
                    additionalProperties:
                      type: array
                      items:
                        type: string
    InvalidRuleProblem:
      description: आपके द्वारा सबमिट किया गया नियम अमान्य है।
      allOf:
        - $ref: '#/components/schemas/Problem'
    NonCompliantRulesProblem:
      description: ऐसी समस्या जो दर्शाती है कि यूज़र का नियम-समूह अनुपालन में नहीं है।
      allOf:
        - $ref: '#/components/schemas/Problem'
    FieldUnauthorizedProblem:
      description: >-
        ऐसी समस्या जो यह दर्शाती है कि आपको Tweet, उपयोगकर्ता आदि पर किसी विशेष
        फ़ील्ड को देखने की अनुमति नहीं है।
      allOf:
        - $ref: '#/components/schemas/Problem'
        - type: object
          required:
            - resource_type
            - field
            - section
          properties:
            field:
              type: string
            resource_type:
              type: string
              enum:
                - user
                - tweet
                - media
                - list
                - space
            section:
              type: string
              enum:
                - data
                - includes
    ResourceUnauthorizedProblem:
      description: >-
        ऐसी Problem जो दर्शाती है कि आपको किसी विशेष Tweet, User आदि को देखने की
        अनुमति नहीं है।
      allOf:
        - $ref: '#/components/schemas/Problem'
        - type: object
          required:
            - value
            - resource_id
            - resource_type
            - section
            - parameter
          properties:
            parameter:
              type: string
            resource_id:
              type: string
            resource_type:
              type: string
              enum:
                - user
                - tweet
                - media
                - list
                - space
            section:
              type: string
              enum:
                - data
                - includes
            value:
              type: string
    OperationalDisconnectProblem:
      description: परिचालन कारणों से आपका कनेक्शन डिस्कनेक्ट कर दिया गया है।
      allOf:
        - $ref: '#/components/schemas/Problem'
        - type: object
          properties:
            disconnect_type:
              type: string
              enum:
                - OperationalDisconnect
                - UpstreamOperationalDisconnect
                - ForceDisconnect
                - UpstreamUncleanDisconnect
                - SlowReader
                - InternalError
                - ClientApplicationStateDegraded
                - InvalidRules
    ResourceNotFoundProblem:
      description: ऐसी Problem जो दर्शाती है कि दिया गया Tweet, User आदि मौजूद नहीं है।
      allOf:
        - $ref: '#/components/schemas/Problem'
        - type: object
          required:
            - parameter
            - value
            - resource_id
            - resource_type
          properties:
            parameter:
              type: string
              minLength: 1
            resource_id:
              type: string
            resource_type:
              type: string
              enum:
                - user
                - tweet
                - media
                - list
                - space
            value:
              type: string
              description: मान फ़ील्ड के स्कीमा से मेल खाएगा।
    ResourceUnavailableProblem:
      description: >-
        ऐसी Problem जो दर्शाती है कि कोई विशेष Tweet, User आदि आपके लिए उपलब्ध
        नहीं है।
      allOf:
        - $ref: '#/components/schemas/Problem'
        - type: object
          required:
            - parameter
            - resource_id
            - resource_type
          properties:
            parameter:
              type: string
              minLength: 1
            resource_id:
              type: string
            resource_type:
              type: string
              enum:
                - user
                - tweet
                - media
                - list
                - space
    RulesCapProblem:
      description: आप rules की अधिकतम संख्या से अधिक हो गए हैं।
      allOf:
        - $ref: '#/components/schemas/Problem'
    ConnectionExceptionProblem:
      description: एक Problem जो दर्शाता है कि कनेक्शन में कुछ गड़बड़ी है।
      allOf:
        - $ref: '#/components/schemas/Problem'
        - type: object
          properties:
            connection_issue:
              type: string
              enum:
                - TooManyConnections
                - ProvisioningSubscription
                - RuleConfigurationIssue
                - RulesInvalidIssue
    UnsupportedAuthenticationProblem:
      description: ऐसी समस्या जो दर्शाती है कि उपयोग किया गया प्रमाणीकरण समर्थित नहीं है।
      allOf:
        - $ref: '#/components/schemas/Problem'
    UsageCapExceededProblem:
      description: ऐसी समस्या जो दर्शाती है कि उपयोग सीमा पार हो गई है।
      allOf:
        - $ref: '#/components/schemas/Problem'
        - type: object
          properties:
            period:
              type: string
              enum:
                - Daily
                - Monthly
            scope:
              type: string
              enum:
                - Account
                - Product
  securitySchemes:
    OAuth2UserToken:
      type: oauth2
      flows:
        authorizationCode:
          authorizationUrl: https://api.x.com/2/oauth2/authorize
          tokenUrl: https://api.x.com/2/oauth2/token
          scopes:
            block.read: View accounts you have blocked.
            bookmark.read: Read your bookmarked Posts.
            bookmark.write: Create and delete your bookmarks.
            dm.read: Read all your Direct Messages.
            dm.write: Send and manage your Direct Messages.
            follows.read: View accounts you follow and accounts following you.
            follows.write: Follow and unfollow accounts on your behalf.
            like.read: View Posts you have liked and likes you can see.
            like.write: Like and unlike Posts on your behalf.
            list.read: >-
              View Lists, members, and followers of Lists you created or are a
              member of, including private Lists.
            list.write: Create and manage Lists on your behalf.
            media.write: Upload media, such as photos and videos, on your behalf.
            mute.read: View accounts you have muted.
            mute.write: Mute and unmute accounts on your behalf.
            offline.access: Request a refresh token for the app.
            space.read: View all Spaces you have access to.
            timeline.read: >-
              View all Custom Timelines you can see, including public Custom
              Timelines from other developers.
            tweet.moderate.write: Hide and unhide replies to your Posts.
            tweet.read: >-
              View all Posts you can see, including those from protected
              accounts.
            tweet.write: Post and repost on your behalf.
            users.read: View any account you can see, including protected accounts.
    UserToken:
      type: http
      scheme: OAuth

````