Skip to main content
POST
/
topic
/
create
Adds a new topic, if parent topic id is null then the topic inserted will be parent, if not, then it's a child topic.
curl --request POST \
  --url https://api.example.com/topic/create \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "topicText": "<string>",
  "languageId": 123,
  "parentTopicId": 123
}
'
{
  "success": true,
  "data": "<unknown>"
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Body

application/json

Input model to add a new child category

topicText
string
required
Minimum string length: 1
languageId
integer<int32>
required

Language ID for the language that the category is being created in

parentTopicId
integer<int32> | null

If parent category is null, then this is a root category

Response

Success

success
boolean
data
unknown