Add a post to a wall.
Add a post to a wall.
Path Parameters
- target string required
Possible values: Value must match regular expression
\w+
- targetId string required
Possible values: Value must match regular expression
\d+
- application/json
Request Body
Only properties body
and pictures
are used to create the new post, others may be ommitted.
- id Unique identifier of the wall post
- body Text of the wall post required
- time The posts time of creation
- pictures string[]
Image urls. Legacy images get returned as file identifier from which urls to differently sized images can be generated
author object
id Unique identifier of the foodsaver. requiredname Name of the Foodsaver. requiredMight include the last name.
avatar URL of the foodsavers avatar image.
Responses
- 200
- 400
- 401
- 403
Success
- application/json
- Schema
- Example (from schema)
Schema
- id Unique identifier of the wall post
- body Text of the wall post
- time The posts time of creation
- pictures string[]
Image urls. Legacy images get returned as file identifier from which urls to differently sized images can be generated
author object
id Unique identifier of the foodsaver.name Name of the Foodsaver.Might include the last name.
avatar URL of the foodsavers avatar image.
{
"id": 1,
"body": "Hello world!",
"time": "2024-01-14 09:57:24",
"pictures": [
"/api/uploads/bcb57ea1-ed73-4fde-849b-c88b11393690"
],
"author": {
"id": 1,
"name": "Max Mustermann",
"avatar": "/api/uploads/bc476952-08be-45a7-b670-db27c966c9c2"
}
}
Invalid post data
Not logged in
Not permitted to post to this wall
Loading...