Update a topic

PUT /v1/forums/{forumId}/topics/{topicId}

Update a topic

Path parameters

  • forumId string Required

    The id of the forum

  • topicId string Required

    The id of the topic

application/json

Body Required

  • name string

    Name of the topic

  • content string

    Content of the topic

Responses

  • 200 application/json

    Topic successfully updated

    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

  • 404

    Topic not found

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