Update a post by ID
curl --request PATCH \
--url https://posttu.com/api/v1/posts/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"text": "Updated announcement content",
"richText": "<string>",
"title": "Updated Announcement Title",
"firstComment": "Updated link in first comment: https://example.com/update",
"media": [
"med_updated123"
],
"timestamp": "2026-11-09T18:00:00.000Z",
"isNsfw": false,
"postType": "post",
"other": {
"REDDIT": {
"subreddit": "technology",
"spoiler": false
}
},
"thread": [
{
"text": "Second post in the thread sequence",
"richText": "<string>",
"media": [
"med_thread_123"
]
}
]
}
'import requests
url = "https://posttu.com/api/v1/posts/{id}"
payload = {
"text": "Updated announcement content",
"richText": "<string>",
"title": "Updated Announcement Title",
"firstComment": "Updated link in first comment: https://example.com/update",
"media": ["med_updated123"],
"timestamp": "2026-11-09T18:00:00.000Z",
"isNsfw": False,
"postType": "post",
"other": { "REDDIT": {
"subreddit": "technology",
"spoiler": False
} },
"thread": [
{
"text": "Second post in the thread sequence",
"richText": "<string>",
"media": ["med_thread_123"]
}
]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
text: 'Updated announcement content',
richText: '<string>',
title: 'Updated Announcement Title',
firstComment: 'Updated link in first comment: https://example.com/update',
media: ['med_updated123'],
timestamp: '2026-11-09T18:00:00.000Z',
isNsfw: false,
postType: 'post',
other: {REDDIT: {subreddit: 'technology', spoiler: false}},
thread: [
{
text: 'Second post in the thread sequence',
richText: '<string>',
media: ['med_thread_123']
}
]
})
};
fetch('https://posttu.com/api/v1/posts/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://posttu.com/api/v1/posts/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'text' => 'Updated announcement content',
'richText' => '<string>',
'title' => 'Updated Announcement Title',
'firstComment' => 'Updated link in first comment: https://example.com/update',
'media' => [
'med_updated123'
],
'timestamp' => '2026-11-09T18:00:00.000Z',
'isNsfw' => false,
'postType' => 'post',
'other' => [
'REDDIT' => [
'subreddit' => 'technology',
'spoiler' => false
]
],
'thread' => [
[
'text' => 'Second post in the thread sequence',
'richText' => '<string>',
'media' => [
'med_thread_123'
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://posttu.com/api/v1/posts/{id}"
payload := strings.NewReader("{\n \"text\": \"Updated announcement content\",\n \"richText\": \"<string>\",\n \"title\": \"Updated Announcement Title\",\n \"firstComment\": \"Updated link in first comment: https://example.com/update\",\n \"media\": [\n \"med_updated123\"\n ],\n \"timestamp\": \"2026-11-09T18:00:00.000Z\",\n \"isNsfw\": false,\n \"postType\": \"post\",\n \"other\": {\n \"REDDIT\": {\n \"subreddit\": \"technology\",\n \"spoiler\": false\n }\n },\n \"thread\": [\n {\n \"text\": \"Second post in the thread sequence\",\n \"richText\": \"<string>\",\n \"media\": [\n \"med_thread_123\"\n ]\n }\n ]\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://posttu.com/api/v1/posts/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"text\": \"Updated announcement content\",\n \"richText\": \"<string>\",\n \"title\": \"Updated Announcement Title\",\n \"firstComment\": \"Updated link in first comment: https://example.com/update\",\n \"media\": [\n \"med_updated123\"\n ],\n \"timestamp\": \"2026-11-09T18:00:00.000Z\",\n \"isNsfw\": false,\n \"postType\": \"post\",\n \"other\": {\n \"REDDIT\": {\n \"subreddit\": \"technology\",\n \"spoiler\": false\n }\n },\n \"thread\": [\n {\n \"text\": \"Second post in the thread sequence\",\n \"richText\": \"<string>\",\n \"media\": [\n \"med_thread_123\"\n ]\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://posttu.com/api/v1/posts/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"text\": \"Updated announcement content\",\n \"richText\": \"<string>\",\n \"title\": \"Updated Announcement Title\",\n \"firstComment\": \"Updated link in first comment: https://example.com/update\",\n \"media\": [\n \"med_updated123\"\n ],\n \"timestamp\": \"2026-11-09T18:00:00.000Z\",\n \"isNsfw\": false,\n \"postType\": \"post\",\n \"other\": {\n \"REDDIT\": {\n \"subreddit\": \"technology\",\n \"spoiler\": false\n }\n },\n \"thread\": [\n {\n \"text\": \"Second post in the thread sequence\",\n \"richText\": \"<string>\",\n \"media\": [\n \"med_thread_123\"\n ]\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "post_xyz123",
"postStatus": "SCHEDULED",
"scheduledFor": "2023-11-07T05:31:56Z"
},
"success": true,
"error": "<string>",
"message": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}Posts
Update a post
Update the content, media, schedule time, or settings of an existing post.
PATCH
/
api
/
v1
/
posts
/
{id}
Update a post by ID
curl --request PATCH \
--url https://posttu.com/api/v1/posts/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"text": "Updated announcement content",
"richText": "<string>",
"title": "Updated Announcement Title",
"firstComment": "Updated link in first comment: https://example.com/update",
"media": [
"med_updated123"
],
"timestamp": "2026-11-09T18:00:00.000Z",
"isNsfw": false,
"postType": "post",
"other": {
"REDDIT": {
"subreddit": "technology",
"spoiler": false
}
},
"thread": [
{
"text": "Second post in the thread sequence",
"richText": "<string>",
"media": [
"med_thread_123"
]
}
]
}
'import requests
url = "https://posttu.com/api/v1/posts/{id}"
payload = {
"text": "Updated announcement content",
"richText": "<string>",
"title": "Updated Announcement Title",
"firstComment": "Updated link in first comment: https://example.com/update",
"media": ["med_updated123"],
"timestamp": "2026-11-09T18:00:00.000Z",
"isNsfw": False,
"postType": "post",
"other": { "REDDIT": {
"subreddit": "technology",
"spoiler": False
} },
"thread": [
{
"text": "Second post in the thread sequence",
"richText": "<string>",
"media": ["med_thread_123"]
}
]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
text: 'Updated announcement content',
richText: '<string>',
title: 'Updated Announcement Title',
firstComment: 'Updated link in first comment: https://example.com/update',
media: ['med_updated123'],
timestamp: '2026-11-09T18:00:00.000Z',
isNsfw: false,
postType: 'post',
other: {REDDIT: {subreddit: 'technology', spoiler: false}},
thread: [
{
text: 'Second post in the thread sequence',
richText: '<string>',
media: ['med_thread_123']
}
]
})
};
fetch('https://posttu.com/api/v1/posts/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://posttu.com/api/v1/posts/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'text' => 'Updated announcement content',
'richText' => '<string>',
'title' => 'Updated Announcement Title',
'firstComment' => 'Updated link in first comment: https://example.com/update',
'media' => [
'med_updated123'
],
'timestamp' => '2026-11-09T18:00:00.000Z',
'isNsfw' => false,
'postType' => 'post',
'other' => [
'REDDIT' => [
'subreddit' => 'technology',
'spoiler' => false
]
],
'thread' => [
[
'text' => 'Second post in the thread sequence',
'richText' => '<string>',
'media' => [
'med_thread_123'
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://posttu.com/api/v1/posts/{id}"
payload := strings.NewReader("{\n \"text\": \"Updated announcement content\",\n \"richText\": \"<string>\",\n \"title\": \"Updated Announcement Title\",\n \"firstComment\": \"Updated link in first comment: https://example.com/update\",\n \"media\": [\n \"med_updated123\"\n ],\n \"timestamp\": \"2026-11-09T18:00:00.000Z\",\n \"isNsfw\": false,\n \"postType\": \"post\",\n \"other\": {\n \"REDDIT\": {\n \"subreddit\": \"technology\",\n \"spoiler\": false\n }\n },\n \"thread\": [\n {\n \"text\": \"Second post in the thread sequence\",\n \"richText\": \"<string>\",\n \"media\": [\n \"med_thread_123\"\n ]\n }\n ]\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://posttu.com/api/v1/posts/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"text\": \"Updated announcement content\",\n \"richText\": \"<string>\",\n \"title\": \"Updated Announcement Title\",\n \"firstComment\": \"Updated link in first comment: https://example.com/update\",\n \"media\": [\n \"med_updated123\"\n ],\n \"timestamp\": \"2026-11-09T18:00:00.000Z\",\n \"isNsfw\": false,\n \"postType\": \"post\",\n \"other\": {\n \"REDDIT\": {\n \"subreddit\": \"technology\",\n \"spoiler\": false\n }\n },\n \"thread\": [\n {\n \"text\": \"Second post in the thread sequence\",\n \"richText\": \"<string>\",\n \"media\": [\n \"med_thread_123\"\n ]\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://posttu.com/api/v1/posts/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"text\": \"Updated announcement content\",\n \"richText\": \"<string>\",\n \"title\": \"Updated Announcement Title\",\n \"firstComment\": \"Updated link in first comment: https://example.com/update\",\n \"media\": [\n \"med_updated123\"\n ],\n \"timestamp\": \"2026-11-09T18:00:00.000Z\",\n \"isNsfw\": false,\n \"postType\": \"post\",\n \"other\": {\n \"REDDIT\": {\n \"subreddit\": \"technology\",\n \"spoiler\": false\n }\n },\n \"thread\": [\n {\n \"text\": \"Second post in the thread sequence\",\n \"richText\": \"<string>\",\n \"media\": [\n \"med_thread_123\"\n ]\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "post_xyz123",
"postStatus": "SCHEDULED",
"scheduledFor": "2023-11-07T05:31:56Z"
},
"success": true,
"error": "<string>",
"message": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}Authorizations
Body
application/json
Updated post body text content
Example:
"Updated announcement content"
Last modified on November 8, 2026

