cURL
curl --request PATCH \ --url https://api.usenotra.com/v1/posts/{postId} \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "title": "Ship notes for week 11", "slug": "ship-notes-week-11", "markdown": "# Ship notes\n\nWe shipped a faster editor.", "status": "published" } '
{ "organization": { "id": "<string>", "slug": "<string>", "name": "<string>", "logo": "<string>" }, "post": { "id": "<string>", "title": "<string>", "slug": "<string>", "content": "<string>", "markdown": "<string>", "recommendations": "<string>", "contentType": "<string>", "status": "draft", "createdAt": "<string>", "updatedAt": "<string>", "sourceMetadata": "<unknown>" } }
Send your API key in the Authorization header as Bearer API_KEY.
1
"post_123"
1 - 120
"Ship notes for week 11"
1 - 160
^[a-z0-9]+(?:-[a-z0-9]+)*$
"ship-notes-week-11"
"# Ship notes\n\nWe shipped a faster editor."
draft
published
"published"
Post updated successfully
Show child attributes
Was this page helpful?