Create a topic

POST /v1/forums/{forumId}/topics

Create a topic

Path parameters

  • forumId string Required

    The id of the forum

application/json

Body Required

  • name string Required

    Name of the topic

  • content string

    Content of the topic (in Markdown)

Responses

  • 201 application/json

    Topic has been successfully created

    Hide response attributes Show response attributes object
    • id string Required

      The id of the topic.

    • name string Required

      The name of the topic.

    • closedAt integer | null Required

      Date at which the topic has been closed (Unix timestamp format), or null if the topic is active

  • 400

    Malformed payload

POST /v1/forums/{forumId}/topics
curl \
 --request POST 'https://openapi.meltingspot.io/v1/forums/{forumId}/topics' \
 --header "Content-Type: application/json" \
 --data '{"name":"string","content":"string"}'
Request examples
{
  "name": "string",
  "content": "string"
}
Response examples (201)
{
  "id": "string",
  "name": "string",
  "closedAt": 42
}