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

# Edit post

> Update an existing post on the linked account.

**Required scope:** `posts:write`



## OpenAPI

````yaml /openapi/v3.json put /v3/access/posts/:postId
openapi: 3.1.0
info:
  title: OFAuth API
  version: 1.0.0
  description: >-
    OFAuth V3 API for linking accounts, making OnlyFans API requests, and
    receiving events.
  contact:
    email: support@ofauth.com
    url: https://ofauth.com/
servers:
  - url: https://api.ofauth.com
security:
  - ExternalOAuth: []
tags:
  - name: Link
    description: Link accounts, get and refresh tokens, and end access.
  - name: Linked accounts
    description: The linked accounts of one authorization, and their settings.
  - name: Access
    description: Make OnlyFans API requests for a linked account.
  - name: Analytics
    description: 'Access: charts, rankings, and performance data.'
  - name: Earnings
    description: 'Access: earnings charts, transactions, and chargebacks.'
  - name: Messages
    description: 'Access: messaging, chats, queue, and mass messaging.'
  - name: Posts
    description: 'Access: create, edit, list, and manage posts.'
  - name: Promotions
    description: 'Access: promotions, trials, and bundles.'
  - name: Users
    description: 'Access: user profiles, subscriptions, and actions.'
  - name: Vault
    description: 'Access: vault folders, media, and management.'
  - name: Upload
    description: 'Access: media upload and processing.'
  - name: Self
    description: 'Access: linked account profile and settings.'
  - name: Stories
    description: 'Access: stories listing and management.'
  - name: Subscriptions
    description: 'Access: subscription offers, discounts, and management.'
  - name: Realtime
    description: Webhook event formats, including OnlyFans activity events.
externalDocs:
  description: OFAuth Developer Documentation
  url: https://docs.ofauth.com
paths:
  /v3/access/posts/:postId:
    put:
      tags:
        - Posts
      summary: Edit post
      description: |-
        Update an existing post on the linked account.

        **Required scope:** `posts:write`
      operationId: access.posts.update
      parameters:
        - name: x-linked-account-id
          in: header
          required: true
          description: >-
            The linked account to use. The user must have shared it with your
            app. A missing account returns `linked_account_required`; an account
            outside your access returns `linked_account_not_granted`.
          schema:
            type: string
            example: conn_example123
        - schema:
            type: string
            nullable: true
            minLength: 1
            description: OnlyFans post ID
          required: false
          description: OnlyFans post ID
          name: postId
          in: path
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                text:
                  type: string
                  maxLength: 10000
                  default: ''
                  description: >-
                    Plain text with optional formatting marks. HTML is displayed
                    as text. See [Text
                    formatting](/v3/guides/how-to/text-formatting).
                replyToMessageId:
                  type: string
                  nullable: true
                  minLength: 1
                  description: Reply to an existing chat message
                mediaItems:
                  type: array
                  items:
                    anyOf:
                      - type: integer
                        minimum: 0
                        exclusiveMinimum: true
                        description: OnlyFans media ID
                      - type: string
                        minLength: 1
                  default: []
                  description: >-
                    Media references to attach. Accepts vault media IDs, upload
                    references (mediaUploadId), or http(s) URLs. See [mediaItems
                    reference](/v3/guides/media-items).
                isLockedText:
                  type: boolean
                  default: false
                  description: 'Whether users must pay to read the text (default: false).'
                price:
                  type: number
                  nullable: true
                  minimum: 0
                  maximum: 200
                  default: 0
                  description: Price to unlock message content (0 for free)
                previewMediaCount:
                  type: integer
                  nullable: true
                  minimum: 0
                  default: 0
                  description: >-
                    Number of `mediaItems` to show as free previews, starting
                    with the first item.
                releaseForms:
                  type: object
                  properties:
                    users:
                      type: array
                      items:
                        type: integer
                        minimum: 0
                        exclusiveMinimum: true
                        description: OnlyFans user ID
                      default: []
                      description: Users to add to release form
                    partners:
                      type: array
                      items:
                        type: integer
                        minimum: 0
                        exclusiveMinimum: true
                        description: OnlyFans user ID
                      default: []
                      description: Partners to add to release form
                    guests:
                      type: array
                      items:
                        type: integer
                        minimum: 0
                        exclusiveMinimum: true
                        description: OnlyFans user ID
                      default: []
                      description: Guests to add to release form
                  description: Release form participants
                userTags:
                  type: array
                  items:
                    type: integer
                    minimum: 0
                    exclusiveMinimum: true
                    description: OnlyFans user ID
                  default: []
                  description: Users to tag
                isMarkdown:
                  type: boolean
                  default: true
                  description: >-
                    Apply formatting marks (default: true). Set false to keep
                    marks as literal text. HTML is displayed as text in both
                    modes. See [Text
                    formatting](/v3/guides/how-to/text-formatting).
                scheduledDate:
                  anyOf:
                    - type: string
                    - type: string
                      format: date-time
                    - type: integer
                      minimum: 946684800000
                      maximum: 4102444800000
                    - nullable: true
                  description: >-
                    When to publish the post (omit for immediate). Use ISO 8601
                    with timezone, e.g. 2026-05-25T12:00:00.000Z, or epoch
                    milliseconds.
                fundRaisingTargetAmount:
                  type: number
                  minimum: 10
                  description: Target amount for fund raising post
                fundRaisingTipsPresets:
                  type: array
                  items:
                    type: number
                  maxItems: 4
                  description: Preset tip amounts for fund raising
                expireAfter:
                  type: number
                  minimum: 1
                  maximum: 30
                  description: Days until post expires (1-30)
                poll:
                  type: object
                  properties:
                    options:
                      type: array
                      items:
                        type: string
                        minLength: 1
                      minItems: 2
                      description: Poll answer options
                    type:
                      type: integer
                      minimum: 0
                      exclusiveMinimum: true
                      description: OnlyFans poll type
                    dueDays:
                      type: integer
                      minimum: 0
                      exclusiveMinimum: true
                      description: Number of days before the poll closes
                  required:
                    - options
                    - type
                    - dueDays
                  description: Poll attached to the post
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: number
                  author:
                    type: object
                    properties:
                      id:
                        type: number
                      username:
                        type: string
                        nullable: true
                      name:
                        type: string
                        nullable: true
                      displayName:
                        type: string
                        nullable: true
                      isVerified:
                        type: boolean
                        nullable: true
                      avatar:
                        type: string
                        nullable: true
                      avatarThumbs:
                        type: object
                        nullable: true
                        additionalProperties:
                          type: string
                    required:
                      - id
                  canDelete:
                    type: boolean
                  canEdit:
                    type: boolean
                  canViewMedia:
                    type: boolean
                  postedAt:
                    type: string
                  postedAtPrecise:
                    type: string
                  text:
                    type: string
                  tipsAmount:
                    type: string
                  canComment:
                    type: boolean
                  favoritesCount:
                    type: number
                  isFavorite:
                    type: boolean
                  mediaTotal:
                    type: number
                  mediaReady:
                    type: boolean
                  media:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: number
                        type:
                          type: string
                          enum:
                            - photo
                            - video
                            - gif
                            - audio
                        convertedToVideo:
                          type: boolean
                        canView:
                          type: boolean
                        ready:
                          type: boolean
                        error:
                          type: boolean
                        createdAt:
                          type: string
                        duration:
                          type: number
                        releaseForms:
                          type: array
                          items:
                            type: object
                            properties:
                              id:
                                type: number
                              name:
                                type: string
                              partnerSource:
                                type: string
                              type:
                                type: string
                              user:
                                type: object
                                properties:
                                  id:
                                    type: number
                                  name:
                                    type: string
                                  username:
                                    type: string
                                  displayName:
                                    type: string
                                    nullable: true
                                  isVerified:
                                    type: boolean
                                  avatar:
                                    type: string
                                    nullable: true
                                  avatarThumbs:
                                    type: object
                                    nullable: true
                                    additionalProperties:
                                      type: string
                                  ivStatus:
                                    type: string
                                  isFromGuest:
                                    type: boolean
                                required:
                                  - id
                                  - name
                                  - username
                            required:
                              - id
                              - name
                              - partnerSource
                              - type
                        hasCustomPreview:
                          type: boolean
                        urls:
                          type: object
                          additionalProperties:
                            type: string
                        sizes:
                          type: object
                          additionalProperties:
                            type: object
                            properties:
                              width:
                                type: number
                              height:
                                type: number
                              size:
                                type: number
                      required:
                        - id
                        - type
                        - convertedToVideo
                        - canView
                        - ready
                        - error
                        - createdAt
                        - releaseForms
                  price:
                    type: number
                  releaseForms:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: number
                        name:
                          type: string
                        partnerSource:
                          type: string
                        type:
                          type: string
                        user:
                          type: object
                          properties:
                            id:
                              type: number
                            name:
                              type: string
                            username:
                              type: string
                            displayName:
                              type: string
                              nullable: true
                            isVerified:
                              type: boolean
                            avatar:
                              type: string
                              nullable: true
                            avatarThumbs:
                              type: object
                              nullable: true
                              additionalProperties:
                                type: string
                            ivStatus:
                              type: string
                            isFromGuest:
                              type: boolean
                          required:
                            - id
                            - name
                            - username
                      required:
                        - id
                        - name
                        - partnerSource
                        - type
                  canEditText:
                    type: boolean
                  canEditMedia:
                    type: boolean
                  canEditSchedule:
                    type: boolean
                  canEditVote:
                    type: boolean
                  previewIds:
                    type: array
                    items:
                      nullable: true
                required:
                  - id
                  - canDelete
                  - canEdit
                  - canViewMedia
                  - media
        '400':
          description: Bad Request
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
        '429':
          description: Rate Limit Exceeded
        '500':
          description: Internal Server Error
        '502':
          description: Bad Gateway
      deprecated: false
      security:
        - ExternalOAuth: []
          LinkedAccountId: []
components:
  securitySchemes:
    ExternalOAuth:
      type: http
      scheme: bearer
      bearerFormat: opaque
      description: Link access token for one Sandbox, Test, or Live authorization.
    LinkedAccountId:
      type: apiKey
      name: x-linked-account-id
      in: header
      description: >-
        Selects one of the authorization's linked accounts via the
        x-linked-account-id header.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.