1. Getting started

This allows to create a post on the platform.

2. General use

API Path

/API/post/create-post.php

Request

POST

requires login

true

needs database

true

needs config

true

output

JSON

3. Input

Takes 1 URL encoded parameter:

title

Title of the post

desc

Description of the post

image

Post image

3.1. Image

The Image is a file upload, and has to be of the following formats:

  • jpg

  • png

  • gif

It also has to be less than 10 MB of the file size configured in the config

4. Output

4.1. Default

If everything works, the server will respond with the following JSON:

{
  "postid": (1)
}
1 uuid of the uploaded post

4.2. Error

If an error occurs, the server will respond with the following JSON:

If the image is larger than 40 MB, the Server will refuse the upload.

{
  "error": (1)
}
1 Error message