cURL
curl --request PUT \ --url http://localhost:3001/portal-api/posts/{post_id} \ --header 'Authorization: <api-key>' \ --header 'Content-Type: application/json' \ --data '{ "Title": "<string>", "Lede": "<string>", "Content": "<string>", "Status": "<string>", "Path": "<string>", "Categories": [ "<string>" ], "Tags": [ "<string>" ], "MarkdownEnabled": true, "MarkdownContent": "<string>", "PreviewContent": "<string>" }'
{ "ID": "<string>", "Title": "<string>", "Lede": "<string>", "Content": "<string>", "Status": "<string>", "Path": "<string>", "Categories": [ { "ID": "<string>", "Name": "<string>", "CreatedAt": "2023-06-25 13:37", "UpdatedAt": "2023-06-25 13:37" } ], "Tags": [ { "ID": "<string>", "Name": "<string>", "CreatedAt": "2023-06-25 13:37", "UpdatedAt": "2023-06-25 13:37" } ], "MarkdownEnabled": true, "MarkdownContent": "<string>", "PreviewContent": "<string>", "CreatedAt": "2023-06-25 13:37", "UpdatedAt": "2023-06-25 13:37" }
Update a post’s data such as title, content, status, and more.
Show child attributes
Was this page helpful?