site logo

Tettra Help Docs

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 question  
  • title - required - the title of the question 
  • details - optional - additional details formatted as HTML 
  • category_id - optional - the category to ask the question in 
  • subcategory_id - optional - the subcategory to ask the question in (if category_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


Related