// Replace API_KEY with your api key
curl --location --request PUT 'https://api.supahub.com/api/v1/posts/:postId' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: Bearer API_KEY' \
--data-urlencode 'title=Updated Post Title' \
--data-urlencode 'desc=Updated description of post.' \
--data-urlencode 'board=clrjfu0l10009bfg8xy27xy8c' \
--data-urlencode 'status=clrjfu0l1000cbfg8nkmdx3vl' \
--data-urlencode 'etc=2024-06-20T16:03:00Z'
PUT
method
/posts/:postId
path

Path Parameters

postId
string
required
Identifier of the post to be updated.

Body Parameters

title
string | undefined
New title for the post.
desc
string | undefined
Updated description or body of the post.
boardId
string | undefined
New board identifier if the post is being moved.
statusId
string | undefined
New status identifier for updating the post’s status.
hide
boolean | undefined
Option to hide the post.
pin
boolean | undefined
Option to pin the post to the top of the board.
disableComments
boolean | undefined
Option to disable comments on the post.
etc
Date | undefined
Additional date or timestamp detail for the post.
// Replace API_KEY with your api key
curl --location --request PUT 'https://api.supahub.com/api/v1/posts/:postId' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: Bearer API_KEY' \
--data-urlencode 'title=Updated Post Title' \
--data-urlencode 'desc=Updated description of post.' \
--data-urlencode 'board=clrjfu0l10009bfg8xy27xy8c' \
--data-urlencode 'status=clrjfu0l1000cbfg8nkmdx3vl' \
--data-urlencode 'etc=2024-06-20T16:03:00Z'