Skip to content

Clarify creating public posts via the API #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions source/index.html.md
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,8 @@ This creates a new post, associating it with a user account if authenticated. If
* writeas7pm7rcdqg.onion/`{id}`
* paste.as/`{id}` -- if `font` was _code_ or _mono_

The created post will be published as a draft, since it will not be part of any blog/collection. To make the post public, move that draft to a blog/collection with the [Move a Post](#move-a-post-to-a-collection) endpoint.

### Authentication

This can be done anonymously or while [authenticated](#authentication).
Expand Down Expand Up @@ -1106,6 +1108,8 @@ client.movePost(token: "00000000-0000-0000-0000-000000000000", postId: "rf3t35fk

This adds a group of posts to a collection. This works for either posts that were created anonymously (i.e. don't belong to the user account) or posts already owned by the user account.

If you are trying to publish a draft post to be public, use this endpoint to assign the draft post to a blog.

### Definition

`POST /api/collections/{COLLECTION_ALIAS}/collect`
Expand Down