cURL
curl --request POST \ --url http://localhost:3001/portal-api/posts \ --header 'Authorization: <api-key>' \ --header 'Content-Type: application/json' \ --data '{ "Content": "# Title\r\n## Subtitle\r\nContent goes here", "MarkdownEnabled": true, "Status": "published", "Title": "Get started this API Product", "Lede": "<string>", "Path": "<string>", "Categories": [ "<string>" ], "Tags": [ "<string>" ], "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" }
Create a new post.
published
draft
review
Show child attributes
Was this page helpful?