게시글 수정
curl --request PUT \
--url https://openapi.rocketpunch.com/api/v1/posts/{postId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form 'request={
"text": "수정된 게시글 본문 내용",
"og": {
"link": "https://example.com"
}
}' \
--form 'images=<string>' \
--form images.items='@example-file'import requests
url = "https://openapi.rocketpunch.com/api/v1/posts/{postId}"
files = { "images.items": ("example-file", open("example-file", "rb")) }
payload = {
"request": "{
\"text\": \"수정된 게시글 본문 내용\",
\"og\": {
\"link\": \"https://example.com\"
}
}",
"images": "<string>"
}
headers = {"Authorization": "Bearer <token>"}
response = requests.put(url, data=payload, files=files, headers=headers)
print(response.text)const form = new FormData();
form.append('request', '{
"text": "수정된 게시글 본문 내용",
"og": {
"link": "https://example.com"
}
}');
form.append('images', '<string>');
form.append('images.items', '{
"fileName": "example-file"
}');
const options = {method: 'PUT', headers: {Authorization: 'Bearer <token>'}};
options.body = form;
fetch('https://openapi.rocketpunch.com/api/v1/posts/{postId}', 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://openapi.rocketpunch.com/api/v1/posts/{postId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"request\"\r\n\r\n{\r\n \"text\": \"수정된 게시글 본문 내용\",\r\n \"og\": {\r\n \"link\": \"https://example.com\"\r\n }\r\n}\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"images\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"images.items\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n{\r\n \"fileName\": \"example-file\"\r\n}\r\n-----011000010111000001101001--",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: multipart/form-data"
],
]);
$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://openapi.rocketpunch.com/api/v1/posts/{postId}"
payload := strings.NewReader("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"request\"\r\n\r\n{\r\n \"text\": \"수정된 게시글 본문 내용\",\r\n \"og\": {\r\n \"link\": \"https://example.com\"\r\n }\r\n}\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"images\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"images.items\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n{\r\n \"fileName\": \"example-file\"\r\n}\r\n-----011000010111000001101001--")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://openapi.rocketpunch.com/api/v1/posts/{postId}")
.header("Authorization", "Bearer <token>")
.body("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"request\"\r\n\r\n{\r\n \"text\": \"수정된 게시글 본문 내용\",\r\n \"og\": {\r\n \"link\": \"https://example.com\"\r\n }\r\n}\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"images\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"images.items\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n{\r\n \"fileName\": \"example-file\"\r\n}\r\n-----011000010111000001101001--")
.asString();require 'uri'
require 'net/http'
url = URI("https://openapi.rocketpunch.com/api/v1/posts/{postId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request.body = "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"request\"\r\n\r\n{\r\n \"text\": \"수정된 게시글 본문 내용\",\r\n \"og\": {\r\n \"link\": \"https://example.com\"\r\n }\r\n}\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"images\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"images.items\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n{\r\n \"fileName\": \"example-file\"\r\n}\r\n-----011000010111000001101001--"
response = http.request(request)
puts response.read_body{
"postId": 12345678,
"content": "<string>",
"images": [
{
"id": 12345,
"url": "https://cdn.example.com/images/2026/5/30/abcdef.jpg",
"width": 1920,
"height": 1080
}
],
"webUrl": "https://www.rocketpunch.com/post/12345678",
"postedAt": "2026-05-29T09:00:00Z",
"updatedAt": "2026-05-29T09:00:00Z",
"og": {
"link": "<string>",
"title": "<string>",
"source": "<string>",
"image": "<string>",
"description": "<string>"
}
}{
"code": "C0005",
"message": "요청 값이 올바르지 않습니다.",
"timestamp": "2026-05-20T09:00:00",
"details": "startDate"
}{
"code": "C0005",
"message": "요청 값이 올바르지 않습니다.",
"timestamp": "2026-05-20T09:00:00",
"details": "startDate"
}{
"code": "C0005",
"message": "요청 값이 올바르지 않습니다.",
"timestamp": "2026-05-20T09:00:00",
"details": "startDate"
}{
"code": "C0005",
"message": "요청 값이 올바르지 않습니다.",
"timestamp": "2026-05-20T09:00:00",
"details": "startDate"
}{
"code": "C0005",
"message": "요청 값이 올바르지 않습니다.",
"timestamp": "2026-05-20T09:00:00",
"details": "startDate"
}Posts
게시글 수정
OAuth 인증된 작성자 본인이 자신의 게시글 본문(+OG)을 수정한다. 본문(JSON) + 이미지 0~10장을 multipart/form-data 로 함께 업로드한다. post:write scope 필요.
인증: Authorization: Bearer <jwt> 헤더가 필요하다.
필수 OAuth scope: post:write.
PUT
/
api
/
v1
/
posts
/
{postId}
게시글 수정
curl --request PUT \
--url https://openapi.rocketpunch.com/api/v1/posts/{postId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form 'request={
"text": "수정된 게시글 본문 내용",
"og": {
"link": "https://example.com"
}
}' \
--form 'images=<string>' \
--form images.items='@example-file'import requests
url = "https://openapi.rocketpunch.com/api/v1/posts/{postId}"
files = { "images.items": ("example-file", open("example-file", "rb")) }
payload = {
"request": "{
\"text\": \"수정된 게시글 본문 내용\",
\"og\": {
\"link\": \"https://example.com\"
}
}",
"images": "<string>"
}
headers = {"Authorization": "Bearer <token>"}
response = requests.put(url, data=payload, files=files, headers=headers)
print(response.text)const form = new FormData();
form.append('request', '{
"text": "수정된 게시글 본문 내용",
"og": {
"link": "https://example.com"
}
}');
form.append('images', '<string>');
form.append('images.items', '{
"fileName": "example-file"
}');
const options = {method: 'PUT', headers: {Authorization: 'Bearer <token>'}};
options.body = form;
fetch('https://openapi.rocketpunch.com/api/v1/posts/{postId}', 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://openapi.rocketpunch.com/api/v1/posts/{postId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"request\"\r\n\r\n{\r\n \"text\": \"수정된 게시글 본문 내용\",\r\n \"og\": {\r\n \"link\": \"https://example.com\"\r\n }\r\n}\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"images\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"images.items\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n{\r\n \"fileName\": \"example-file\"\r\n}\r\n-----011000010111000001101001--",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: multipart/form-data"
],
]);
$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://openapi.rocketpunch.com/api/v1/posts/{postId}"
payload := strings.NewReader("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"request\"\r\n\r\n{\r\n \"text\": \"수정된 게시글 본문 내용\",\r\n \"og\": {\r\n \"link\": \"https://example.com\"\r\n }\r\n}\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"images\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"images.items\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n{\r\n \"fileName\": \"example-file\"\r\n}\r\n-----011000010111000001101001--")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://openapi.rocketpunch.com/api/v1/posts/{postId}")
.header("Authorization", "Bearer <token>")
.body("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"request\"\r\n\r\n{\r\n \"text\": \"수정된 게시글 본문 내용\",\r\n \"og\": {\r\n \"link\": \"https://example.com\"\r\n }\r\n}\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"images\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"images.items\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n{\r\n \"fileName\": \"example-file\"\r\n}\r\n-----011000010111000001101001--")
.asString();require 'uri'
require 'net/http'
url = URI("https://openapi.rocketpunch.com/api/v1/posts/{postId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request.body = "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"request\"\r\n\r\n{\r\n \"text\": \"수정된 게시글 본문 내용\",\r\n \"og\": {\r\n \"link\": \"https://example.com\"\r\n }\r\n}\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"images\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"images.items\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n{\r\n \"fileName\": \"example-file\"\r\n}\r\n-----011000010111000001101001--"
response = http.request(request)
puts response.read_body{
"postId": 12345678,
"content": "<string>",
"images": [
{
"id": 12345,
"url": "https://cdn.example.com/images/2026/5/30/abcdef.jpg",
"width": 1920,
"height": 1080
}
],
"webUrl": "https://www.rocketpunch.com/post/12345678",
"postedAt": "2026-05-29T09:00:00Z",
"updatedAt": "2026-05-29T09:00:00Z",
"og": {
"link": "<string>",
"title": "<string>",
"source": "<string>",
"image": "<string>",
"description": "<string>"
}
}{
"code": "C0005",
"message": "요청 값이 올바르지 않습니다.",
"timestamp": "2026-05-20T09:00:00",
"details": "startDate"
}{
"code": "C0005",
"message": "요청 값이 올바르지 않습니다.",
"timestamp": "2026-05-20T09:00:00",
"details": "startDate"
}{
"code": "C0005",
"message": "요청 값이 올바르지 않습니다.",
"timestamp": "2026-05-20T09:00:00",
"details": "startDate"
}{
"code": "C0005",
"message": "요청 값이 올바르지 않습니다.",
"timestamp": "2026-05-20T09:00:00",
"details": "startDate"
}{
"code": "C0005",
"message": "요청 값이 올바르지 않습니다.",
"timestamp": "2026-05-20T09:00:00",
"details": "startDate"
}인증
사용자 컨텍스트 인증용 access token. Authorization: Bearer <jwt> 형식으로 전송한다. OAuth 클라이언트 앱이 Authorization Code + PKCE 흐름으로 발급받은 토큰을 사용한다.
헤더
응답 지원 로케일: ko, en, ja, zh-CN, zh-TW, es, fr, de, pt, th, vi. 미지정 시 ko 기본값
예시:
"ko"
경로 매개변수
게시글 ID
응답
수정 성공.
게시글 작성/수정 응답
게시글 ID
예시:
12345678
게시글 본문
첨부 이미지 (0~10장).
Show child attributes
Show child attributes
게시글 웹 URL
예시:
"https://www.rocketpunch.com/post/12345678"
게시 시각 (ISO 8601 UTC)
예시:
"2026-05-29T09:00:00Z"
수정 시각 (ISO 8601 UTC)
예시:
"2026-05-29T09:00:00Z"
Show child attributes
Show child attributes
이 페이지가 도움이 되었나요?
⌘I