site logo

Tettra Help Docs

API Endpoint: Suggest a New Page

The Suggest a New Page Endpoint creates a new page suggestion.


 URL: https://app.tettra.co/api/teams/{{team_id}}/suggestions 


 HTTP Method: POST


 Arguments:
 

  • api_key - required - your API key; this determines the creator of the suggestion  
  • title  - required - title of suggestion 
  • description  - optional - more context about the suggested page 
  • category - optional - the category to publish the page to 
  • assignable_id - optional - the id of the user to assign the suggestion


 Example:

curl -X POST  -H 'Content-Type: application/json' \
    --data \
    '{
         "api_key":"xxxxxxxxxxxxxxxxxx1234567890",
         "title":"A new page about something I want to know",
         "description":"A question that should be documented",
         "category":2,
         "assignable_id":22
    }' \
    https://app.tettra.co/api/teams/2/suggestions


Related