Skip to main content
PUT
/
api
/
posts
/
:id
curl -X PUT "https://api.dyeink.com/api/posts/507f1f77bcf86cd799439011" \
  -H "Content-Type: application/json" \
  -H "Cookie: session=your_session_token" \
  -d '{
    "title": "Updated Blog Post Title",
    "published": true
  }'
{
  "id": "507f1f77bcf86cd799439011",
  "userId": "507f191e810c19729de860ea",
  "title": "Updated Blog Post Title",
  "slug": "my-blog-post",
  "content": "# Welcome\n\nThis is my blog post content.",
  "excerpt": "An introduction to my blog",
  "coverImage": "https://example.com/cover.jpg",
  "published": true,
  "publishedAt": "2026-03-04T11:00:00.000Z",
  "views": 42,
  "shares": 5,
  "createdAt": "2026-03-04T10:00:00.000Z",
  "updatedAt": "2026-03-04T11:00:00.000Z"
}

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/subratomandal/dyeink/llms.txt

Use this file to discover all available pages before exploring further.

Updates an existing blog post. Only the post owner can update their posts. All fields are optional - only provided fields will be updated.

Authentication

This endpoint requires authentication. Only the post owner can update the post.

Path Parameters

id
string
required
The unique identifier of the post to update

Request Body

All fields are optional. Only include the fields you want to update.
title
string
The title of the post
slug
string
URL-friendly identifier for the post. Must be unique for the user.
content
string
The main content of the post (supports markdown)
excerpt
string
A short summary or description of the post
coverImage
string
URL of the post’s cover image
published
boolean
Whether the post should be published. Setting to true will set publishedAt to the current timestamp if not already published. Setting to false will set publishedAt to null.

Response

id
string
Unique identifier for the post
userId
string
ID of the user who owns the post
title
string
The title of the post
slug
string
URL-friendly identifier for the post
content
string
The main content of the post
excerpt
string
Short summary of the post
coverImage
string
URL of the cover image
published
boolean
Publication status
publishedAt
string | null
ISO 8601 timestamp of when the post was published, or null if unpublished
views
number
Number of views
shares
number
Number of shares
createdAt
string
ISO 8601 timestamp of when the post was created
updatedAt
string
ISO 8601 timestamp of when the post was last updated
curl -X PUT "https://api.dyeink.com/api/posts/507f1f77bcf86cd799439011" \
  -H "Content-Type: application/json" \
  -H "Cookie: session=your_session_token" \
  -d '{
    "title": "Updated Blog Post Title",
    "published": true
  }'
{
  "id": "507f1f77bcf86cd799439011",
  "userId": "507f191e810c19729de860ea",
  "title": "Updated Blog Post Title",
  "slug": "my-blog-post",
  "content": "# Welcome\n\nThis is my blog post content.",
  "excerpt": "An introduction to my blog",
  "coverImage": "https://example.com/cover.jpg",
  "published": true,
  "publishedAt": "2026-03-04T11:00:00.000Z",
  "views": 42,
  "shares": 5,
  "createdAt": "2026-03-04T10:00:00.000Z",
  "updatedAt": "2026-03-04T11:00:00.000Z"
}

Build docs developers (and LLMs) love