Skip to content

Latest commit

 

History

History
40 lines (30 loc) · 719 Bytes

post.md

File metadata and controls

40 lines (30 loc) · 719 Bytes

Add a question

Used to add a new FAQ in one existing category.

URL : /api/v2.1/question

HTTP Header :

Accept-Language: [language code]
X-PMF-Token: [phpMyFAQ client API Token, generated in admin backend]

Method : POST

Auth required : NO

Data constraints

{
  "language": "[language code]",
  "category-id": "[category id as integer value]",
  "question": "[question in plain text]",
  "author": "[author name in plain text]",
  "email": "[author email in plain text]"
}

Data example

{
  "language": "de",
  "category-id": "1",
  "question": "Is this the world we created?",
  "author": "Freddie Mercury",
  "email": "[email protected]"
}