Create multiple forums

POST /v1/forums~bulkCreate

Create multiple forums

application/json

Body Required

  • name string Required

    Name of the forum

  • description string

    Description of the forum

  • emoji string

    Emoji of the forum

  • privacy string

    Privacy of the forum

    Values are Private or Secret. Default value is Private.

Responses

  • 201 application/json

    Forums has been successfully created

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

      The forums that were created.

      Hide created attributes Show created attributes object
      • id string Required

        The id of the forum.

      • name string Required

        The name of the forum.

      • emoji string

        The emoji of the forum

      • description string Required

        The description of the forum

      • createdAt integer Required

        Timestamp in ms of creation date

      • privacy string Required

        Privacy of the forum

        Values are Private or Secret.

    • failed array[object] Required

      The forums that failed to be created.

      Hide failed attributes Show failed attributes object
      • name string Required

        Name of the forum

      • description string

        Description of the forum

      • emoji string

        Emoji of the forum

      • privacy string

        Privacy of the forum

        Values are Private or Secret. Default value is Private.

  • 400

    Malformed payload

  • 413

    Payload is too large

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