Update a post
curl --request PATCH \
--url https://app.blogbowl.io/api/v1/pages/{page_id}/posts/{id} \
--header 'Content-Type: application/json' \
--data '
{
"title": null,
"status": null,
"content_html": null,
"content_md": null,
"description": null,
"category_id": null,
"seo_title": null,
"seo_description": null,
"og_title": null,
"og_description": null,
"author_id": null,
"cover_image_url": null,
"og_image_url": null
}
'import requests
url = "https://app.blogbowl.io/api/v1/pages/{page_id}/posts/{id}"
payload = {
"title": None,
"status": None,
"content_html": None,
"content_md": None,
"description": None,
"category_id": None,
"seo_title": None,
"seo_description": None,
"og_title": None,
"og_description": None,
"author_id": None,
"cover_image_url": None,
"og_image_url": None
}
headers = {"Content-Type": "application/json"}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
title: null,
status: null,
content_html: null,
content_md: null,
description: null,
category_id: null,
seo_title: null,
seo_description: null,
og_title: null,
og_description: null,
author_id: null,
cover_image_url: null,
og_image_url: null
})
};
fetch('https://app.blogbowl.io/api/v1/pages/{page_id}/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://app.blogbowl.io/api/v1/pages/{page_id}/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([
'title' => null,
'status' => null,
'content_html' => null,
'content_md' => null,
'description' => null,
'category_id' => null,
'seo_title' => null,
'seo_description' => null,
'og_title' => null,
'og_description' => null,
'author_id' => null,
'cover_image_url' => null,
'og_image_url' => null
]),
CURLOPT_HTTPHEADER => [
"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://app.blogbowl.io/api/v1/pages/{page_id}/posts/{id}"
payload := strings.NewReader("{\n \"title\": null,\n \"status\": null,\n \"content_html\": null,\n \"content_md\": null,\n \"description\": null,\n \"category_id\": null,\n \"seo_title\": null,\n \"seo_description\": null,\n \"og_title\": null,\n \"og_description\": null,\n \"author_id\": null,\n \"cover_image_url\": null,\n \"og_image_url\": null\n}")
req, _ := http.NewRequest("PATCH", url, payload)
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://app.blogbowl.io/api/v1/pages/{page_id}/posts/{id}")
.header("Content-Type", "application/json")
.body("{\n \"title\": null,\n \"status\": null,\n \"content_html\": null,\n \"content_md\": null,\n \"description\": null,\n \"category_id\": null,\n \"seo_title\": null,\n \"seo_description\": null,\n \"og_title\": null,\n \"og_description\": null,\n \"author_id\": null,\n \"cover_image_url\": null,\n \"og_image_url\": null\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.blogbowl.io/api/v1/pages/{page_id}/posts/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"title\": null,\n \"status\": null,\n \"content_html\": null,\n \"content_md\": null,\n \"description\": null,\n \"category_id\": null,\n \"seo_title\": null,\n \"seo_description\": null,\n \"og_title\": null,\n \"og_description\": null,\n \"author_id\": null,\n \"cover_image_url\": null,\n \"og_image_url\": null\n}"
response = http.request(request)
puts response.read_body{
"id": 123,
"title": "<string>",
"slug": "<string>",
"status": "<string>",
"description": "<string>",
"content_html": "<string>",
"seo_title": "<string>",
"seo_description": "<string>",
"og_title": "<string>",
"og_description": "<string>",
"cover_image_url": "<string>",
"og_image_url": "<string>",
"category_id": 123,
"page_id": 123,
"scheduled_at": "<string>",
"first_published_at": "<string>",
"created_at": "<string>",
"updated_at": "<string>"
}Posts
Update a post
PATCH
/
pages
/
{page_id}
/
posts
/
{id}
Update a post
curl --request PATCH \
--url https://app.blogbowl.io/api/v1/pages/{page_id}/posts/{id} \
--header 'Content-Type: application/json' \
--data '
{
"title": null,
"status": null,
"content_html": null,
"content_md": null,
"description": null,
"category_id": null,
"seo_title": null,
"seo_description": null,
"og_title": null,
"og_description": null,
"author_id": null,
"cover_image_url": null,
"og_image_url": null
}
'import requests
url = "https://app.blogbowl.io/api/v1/pages/{page_id}/posts/{id}"
payload = {
"title": None,
"status": None,
"content_html": None,
"content_md": None,
"description": None,
"category_id": None,
"seo_title": None,
"seo_description": None,
"og_title": None,
"og_description": None,
"author_id": None,
"cover_image_url": None,
"og_image_url": None
}
headers = {"Content-Type": "application/json"}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
title: null,
status: null,
content_html: null,
content_md: null,
description: null,
category_id: null,
seo_title: null,
seo_description: null,
og_title: null,
og_description: null,
author_id: null,
cover_image_url: null,
og_image_url: null
})
};
fetch('https://app.blogbowl.io/api/v1/pages/{page_id}/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://app.blogbowl.io/api/v1/pages/{page_id}/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([
'title' => null,
'status' => null,
'content_html' => null,
'content_md' => null,
'description' => null,
'category_id' => null,
'seo_title' => null,
'seo_description' => null,
'og_title' => null,
'og_description' => null,
'author_id' => null,
'cover_image_url' => null,
'og_image_url' => null
]),
CURLOPT_HTTPHEADER => [
"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://app.blogbowl.io/api/v1/pages/{page_id}/posts/{id}"
payload := strings.NewReader("{\n \"title\": null,\n \"status\": null,\n \"content_html\": null,\n \"content_md\": null,\n \"description\": null,\n \"category_id\": null,\n \"seo_title\": null,\n \"seo_description\": null,\n \"og_title\": null,\n \"og_description\": null,\n \"author_id\": null,\n \"cover_image_url\": null,\n \"og_image_url\": null\n}")
req, _ := http.NewRequest("PATCH", url, payload)
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://app.blogbowl.io/api/v1/pages/{page_id}/posts/{id}")
.header("Content-Type", "application/json")
.body("{\n \"title\": null,\n \"status\": null,\n \"content_html\": null,\n \"content_md\": null,\n \"description\": null,\n \"category_id\": null,\n \"seo_title\": null,\n \"seo_description\": null,\n \"og_title\": null,\n \"og_description\": null,\n \"author_id\": null,\n \"cover_image_url\": null,\n \"og_image_url\": null\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.blogbowl.io/api/v1/pages/{page_id}/posts/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"title\": null,\n \"status\": null,\n \"content_html\": null,\n \"content_md\": null,\n \"description\": null,\n \"category_id\": null,\n \"seo_title\": null,\n \"seo_description\": null,\n \"og_title\": null,\n \"og_description\": null,\n \"author_id\": null,\n \"cover_image_url\": null,\n \"og_image_url\": null\n}"
response = http.request(request)
puts response.read_body{
"id": 123,
"title": "<string>",
"slug": "<string>",
"status": "<string>",
"description": "<string>",
"content_html": "<string>",
"seo_title": "<string>",
"seo_description": "<string>",
"og_title": "<string>",
"og_description": "<string>",
"cover_image_url": "<string>",
"og_image_url": "<string>",
"category_id": 123,
"page_id": 123,
"scheduled_at": "<string>",
"first_published_at": "<string>",
"created_at": "<string>",
"updated_at": "<string>"
}Body
application/json
Post title
Post status (draft, published)
Post content in HTML
Post content in Markdown
Post description
Category ID
SEO title
SEO description
Open Graph title
Open Graph description
Author ID
Cover image URL
Open Graph image URL
Response
200 - */*
Updated post
Post ID
Post title
Post slug
Post status (draft, published, scheduled)
Post description
Post content in HTML
SEO title
SEO description
Open Graph title
Open Graph description
Cover image URL
Open Graph image URL
Category ID
Page ID
Scheduled publish date
First published date
Creation date
Updated date
