community

Publish a Community post as the team

Changed on

Approved at once and shown to everyone on a paid path, signed with author_name (empty = anonymous), e.g. the examples of scripts/data/community_v1.json; the same 422 as a patient's post.

post/api/community/moderation/posts

Request

  • Base URL: https://api.corabea.it (the document declares no server; this is the origin it was published from)
  • URL: https://api.corabea.it/api/community/moderation/posts
  • Auth: HTTP bearer

Request body

categorystring required
titlestring required
quotestring nullable

Optional: empty or missing = no quote

author_namestring nullable

Empty or missing = anonymous

Response

Successful Response

idstring required
user_idstring required
first_namestring nullable
last_namestring nullable
emailstring nullable
categorystring required
titlestring required
quotestring required
author_namestring nullable
status'pending' | 'approved' | 'rejected' required
review_notestring nullable
reviewed_by_user_idstring nullable
reviewed_atstring date-time nullable
helped_countinteger
created_atstring date-time required

Changes