Create multiple topics

POST /v1/forums/{forumId}/topics~bulkCreate

Create multiple topics

Path parameters

  • forumId string Required

    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

    Topics has been successfully created

    Hide response attributes Show response attributes object
    • created array[object] Required

      The channels that were created.

      Hide created attributes Show created attributes object
      • id string Required

        The id of the channel.

      • name string Required

        The name of the channel.

      • emoji string

        The emoji of the channel

      • description object | null Required

        The description of the channel.

      • privacy string Required

        The privacy of the channel.

        Values are Private or Public.

      • autoJoin boolean Required

        Whether the channel will be auto-joined by new members.

      • readonly boolean Required

        Whether the channel will be in read-only for non admin.

      • showMembers boolean Required

        Whether the channel will show its members.

    • failed array[object] Required

      The channels that failed to be created.

      Hide failed attributes Show failed attributes object
      • name string Required

        The name of the channel.

      • description string

        The description of the channel

      • emoji string

        The emoji of the channel

      • autoJoin boolean Required

        Whether the channel should be auto-joined by new members.

      • showMembers boolean Required

        Whether the channel should show its members.

      • privacy string Required

        Privacy setting of the channel

        Values are Private or Public.

  • 400

    Malformed payload

  • 413

    Payload is too large

POST /v1/forums/{forumId}/topics~bulkCreate
curl \
 --request POST 'https://openapi.meltingspot.io/v1/forums/{forumId}/topics~bulkCreate' \
 --header "Content-Type: application/json" \
 --data '[{"name":"string","content":"string"}]'
Request examples
[
  {
    "name": "string",
    "content": "string"
  }
]
Response examples (201)
{
  "created": [
    {
      "id": "string",
      "name": "string",
      "emoji": "string",
      "description": {},
      "privacy": "Private",
      "autoJoin": true,
      "readonly": true,
      "showMembers": true
    }
  ],
  "failed": [
    {
      "name": "string",
      "description": "string",
      "emoji": "string",
      "autoJoin": true,
      "showMembers": true,
      "privacy": "Private"
    }
  ]
}