API Endpoint: Create a Question
The Create a Question publishes a new Tettra page from the given HTML content.
URL: https://app.tettra.co/api/teams/{{team_id}}/questions
HTTP Method: POST
Arguments:
api_key
- required - your API key; this determines the asker of the questiontitle
- required - the title of the questiondetails
- optional - additional details formatted as HTMLcategory_id
- optional - the category to ask the question insubcategory_id
- optional - the subcategory to ask the question in (ifcategory_id
is also provided, the subcategory must be in the provided category)assignees
- optional - array of user ids to assign the question to
Example:
curl -X POST \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data \
'
{
"api_key":"xxxxxxxxxxxxxxxxxx1234567890",
"title":"How do I create a question via api?",
"details":"<h1>Hello world!</h1>",
"category_id":2,
"assignees": [12, 22]
}
' \
https://app.tettra.co/api/teams/2/questions