Skip to main content
PUT
/
api
/
{account}
/
posts
/
{post_id}
Update Post
curl --request PUT \
  --url https://app.onlyfansapi.com/api/{account}/posts/{post_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "text": "Hello!",
  "labelIds": [
    123
  ],
  "mediaFiles": [
    "ofapi_media_abc123",
    "1234567890"
  ],
  "rfTag": [
    123
  ],
  "expireDays": 3,
  "scheduledDate": "2025-01-01T00:00:00.000Z",
  "saveForLater": true,
  "fundRaisingTargetAmount": 30,
  "fundRaisingTipsPresets": [
    5,
    10,
    15
  ],
  "votingType": "poll",
  "votingDue": 3,
  "votingOptions": [
    "First option",
    "Second option"
  ],
  "votingCorrectIndex": 0
}'
""

Authorizations

Authorization
string
header
required

You can retrieve your token by visiting the OnlyFansAPI Console and clicking API Keys -> Create API Key.

Path Parameters

account
string
required

The Account ID

post_id
integer
required

The ID of the post

Body

application/json
text
string
required

The post text content

Example:

"Hello!"

labelIds
string

Array of OF label IDs. Refer to our /posts/labels endpoint.

Example:
[123]
mediaFiles
string

Array of OFAPI ofapi_media_ IDs, or OF media IDs

Example:
["ofapi_media_abc123", "1234567890"]
rfTag
string

Array OnlyFans creator user IDs to tag in your post

Example:
[123]
expireDays
integer

Number of days after which the post will expire. Can be 1, 3, 7 or 30 days. Keep empty for no expiration.

Example:

3

scheduledDate
string

Schedule your post in the future (UTC timezone).

Example:

"2025-01-01T00:00:00.000Z"

saveForLater
boolean

Add your post to the "Saved for later" queue.

Example:

true

fundRaisingTargetAmount
integer

Add a fundraising target to your post. If present, value must be at least 10.

Example:

30

fundRaisingTipsPresets
string[]

Specify which tip amounts will be listed under the fundraising card. Required with fundRaisingTargetAmount, and you must provide at least 1 option. Array items cannot be higher than the fundRaisingTargetAmount.

Example:
[5, 10, 15]
votingType
enum<string>

Include a poll or quiz within your post.

Available options:
poll,
quiz
Example:

"poll"

votingDue
integer

The due date (in days) of your poll/quiz. Can be 1, 3, 7 or 30 days. Can only be filled with votingType.

Example:

3

votingOptions
string[]

The options of your poll/quiz. Required with votingType.

Example:
["First option", "Second option"]
votingCorrectIndex
integer

The array key of your quiz' correct answer. Required when votingType is "quiz". Keep in mind that arrays start at 0

Example:

0

Response

200 - text/plain

Success

The response is of type string.

Example:

""