Update a post
curl --request PATCH \
--url https://api.fanvue.com/v1/posts/{uuid} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-Fanvue-API-Version: <x-fanvue-api-version>' \
--data '
{
"text": "<string>",
"mediaUuids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"mediaPreviewUuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"price": 301,
"publishAt": "2023-11-07T05:31:56Z",
"expiresAt": "2023-11-07T05:31:56Z",
"collectionUuids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}
'import requests
url = "https://api.fanvue.com/v1/posts/{uuid}"
payload = {
"text": "<string>",
"mediaUuids": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"mediaPreviewUuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"price": 301,
"publishAt": "2023-11-07T05:31:56Z",
"expiresAt": "2023-11-07T05:31:56Z",
"collectionUuids": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"]
}
headers = {
"X-Fanvue-API-Version": "<x-fanvue-api-version>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {
'X-Fanvue-API-Version': '<x-fanvue-api-version>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
text: '<string>',
mediaUuids: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
mediaPreviewUuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
price: 301,
publishAt: '2023-11-07T05:31:56Z',
expiresAt: '2023-11-07T05:31:56Z',
collectionUuids: ['3c90c3cc-0d44-4b50-8888-8dd25736052a']
})
};
fetch('https://api.fanvue.com/v1/posts/{uuid}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"uuid": "123e4567-e89b-12d3-a456-426614174000",
"createdAt": "2025-01-01T12:00:00.000Z",
"text": "Updated post content!",
"price": null,
"audience": "followers-and-subscribers",
"publishAt": null,
"publishedAt": "2025-01-01T12:00:00.000Z",
"expiresAt": null,
"mediaUuids": [
"a1b2c3d4-5e6f-7g8h-9i0j-k1l2m3n4o5p6"
],
"mediaPreviewUuid": null,
"isPinned": true,
"likesCount": 42,
"commentsCount": 15,
"tips": {
"count": 8,
"totalGross": 5000,
"totalNet": 4250
},
"collections": [
{
"uuid": "d1e2f3a4-b5c6-7890-abcd-ef1234567890",
"label": "Behind the Scenes"
}
],
"poll": null
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"message": "<string>"
}{
"error": "<string>",
"message": "<string>",
"nextVersion": "<string>"
}{
"error": "Too many requests",
"rateLimit": {
"scope": "app",
"layer": "<string>",
"limit": 123,
"windowSeconds": 123,
"retryAfterSeconds": 123,
"docs": "<string>"
}
}Posts
Update a post
Update an existing post’s properties. Only the post owner can edit their posts. All fields are optional — only provided fields will be updated.
If a scheduled post has its publishAt set to null, it will be published immediately.
Post text is checked for prohibited language and rejected with a 400 if it does not pass.
PATCH
/
v1
/
posts
/
{uuid}
Update a post
curl --request PATCH \
--url https://api.fanvue.com/v1/posts/{uuid} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-Fanvue-API-Version: <x-fanvue-api-version>' \
--data '
{
"text": "<string>",
"mediaUuids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"mediaPreviewUuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"price": 301,
"publishAt": "2023-11-07T05:31:56Z",
"expiresAt": "2023-11-07T05:31:56Z",
"collectionUuids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}
'import requests
url = "https://api.fanvue.com/v1/posts/{uuid}"
payload = {
"text": "<string>",
"mediaUuids": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"mediaPreviewUuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"price": 301,
"publishAt": "2023-11-07T05:31:56Z",
"expiresAt": "2023-11-07T05:31:56Z",
"collectionUuids": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"]
}
headers = {
"X-Fanvue-API-Version": "<x-fanvue-api-version>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {
'X-Fanvue-API-Version': '<x-fanvue-api-version>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
text: '<string>',
mediaUuids: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
mediaPreviewUuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
price: 301,
publishAt: '2023-11-07T05:31:56Z',
expiresAt: '2023-11-07T05:31:56Z',
collectionUuids: ['3c90c3cc-0d44-4b50-8888-8dd25736052a']
})
};
fetch('https://api.fanvue.com/v1/posts/{uuid}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"uuid": "123e4567-e89b-12d3-a456-426614174000",
"createdAt": "2025-01-01T12:00:00.000Z",
"text": "Updated post content!",
"price": null,
"audience": "followers-and-subscribers",
"publishAt": null,
"publishedAt": "2025-01-01T12:00:00.000Z",
"expiresAt": null,
"mediaUuids": [
"a1b2c3d4-5e6f-7g8h-9i0j-k1l2m3n4o5p6"
],
"mediaPreviewUuid": null,
"isPinned": true,
"likesCount": 42,
"commentsCount": 15,
"tips": {
"count": 8,
"totalGross": 5000,
"totalNet": 4250
},
"collections": [
{
"uuid": "d1e2f3a4-b5c6-7890-abcd-ef1234567890",
"label": "Behind the Scenes"
}
],
"poll": null
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"message": "<string>"
}{
"error": "<string>",
"message": "<string>",
"nextVersion": "<string>"
}{
"error": "Too many requests",
"rateLimit": {
"scope": "app",
"layer": "<string>",
"limit": 123,
"windowSeconds": 123,
"retryAfterSeconds": 123,
"docs": "<string>"
}
}Required scope
write:post— Create, edit, and manage posts and content on behalf of users.
Authorizations
Headers
Body
application/json
Text content of the post. Set to null to remove text.
Maximum string length:
5000Response
Post updated successfully
Was this page helpful?