Skip to content
This repository was archived by the owner on Aug 6, 2022. It is now read-only.

III.3.a. Posts

Andrey Bogdanov edited this page Feb 24, 2016 · 11 revisions

Create post

Request

/action/createPost

See Create thread for details. The only difference is that a threadNumber field must be present, specifying the thread to add post to, and it is not required to attach a file. signAsOp mark will only be added to the post if the client IP is equal to the IP of the user who created the thread (OP).

Effect

Creates a new post in the specified thread on the specified board.

Result

Returns an object with short post description (boardName and postNumber fields).

Error

On any error returns an error object See Error object for details.

Markup text

Request

/action/markupText

Fields

boardName

Name of the board to create post on.

email

Poster e-mail. Optional.

name

Poster name. Optional.

subject

Thread subject. Optional.

text

Post text.

signAsOp

Value: true|false. Optional. Defaults to false. If true, the [OP] sign will be added to the first thread post.

tripcode

Value: true|false. Optional. Defaults to false. If true and the hashpass cookie is not empty, the tripcode will be added to the post.

markupMode

Value: NONE|EXTENDED_WAKABA_MARK|BB_CODE|EXTENDED_WAKABA_MARK,BB_CODE. Optional. Defaults to NONE. The post text will be rendered using the specified markup mode.

Effect

Applies markup to the text and name/e-mail/etc. Returns parsed post draft for further usage.

Result

Returns an object representing the parsed post draft.

Error

On any error returns an error object See Error object for details.

Edit post

For moderators and administrators only.

/action/editPost

See Create post for details.

Additional fields compared to Create post

postNumber

The number of a post to edit.

Removed fields compared to Create post

  • file_<id>
  • file_url_<id>
  • file_<id>_rating
  • fileHashes
  • file
  • captchaEngine
  • signAsOp
  • tripcode

password

This field is used to edit a post if hashpass is not specified (either for the request or for the post).

Note: users with access level MODER and higher may edit posts of the users with access level lower then their own.

Result

Returns an object with short post description (boardName and postNumber fields).

Error

On any error returns an error object. See Error object for details.

Clone this wiki locally