Modifies an existing discussion. Requires authenticated user and ownership permissions.

PATCH /api/v1/discussions/{discussionId}

Path parameters

  • discussionId string Required

    The unique identifier of the discussion to update.

application/json

Body

The updated discussion data.

  • title string | null
  • description string | null

Responses

  • 200 application/json

    OK

    Hide response attributes Show response attributes object
    • id string Required
    • title string Required
    • content string Required
    • author object | null Required

      Additional properties are NOT allowed.

      Hide author attributes Show author attributes object | null
      • id string(uuid) Required
      • username string Required
      • display_name string Required
      • avatar_url string | null Required
    • created_at string(date-time) Required
    • comment_count integer(int32) Required
    • last_comments_authors array[object] Required
      Hide last_comments_authors attributes Show last_comments_authors attributes object
      • id string(uuid) Required
      • username string Required
      • display_name string Required
      • avatar_url string | null Required
    • reaction_counters object Required
      Hide reaction_counters attribute Show reaction_counters attribute object
      • * integer(int32) Additional properties
    • viewer_reactions array[string] Required
  • 403 application/json

    Forbidden

    Hide response attributes Show response attributes object
    • type string | null
    • title string | null
    • status integer(int32) | null
    • detail string | null
    • instance string | null
  • 404 application/json

    Not Found

    Hide response attributes Show response attributes object
    • type string | null
    • title string | null
    • status integer(int32) | null
    • detail string | null
    • instance string | null
  • 500 application/json

    Internal Server Error

    Hide response attributes Show response attributes object
    • type string | null
    • title string | null
    • status integer(int32) | null
    • detail string | null
    • instance string | null
PATCH /api/v1/discussions/{discussionId}
curl \
 --request PATCH 'https://crowdparlay.com/api/v1/discussions/{discussionId}' \
 --header "Content-Type: application/json" \
 --data '{"title":"string","description":"string"}'
Request examples
{
  "title": "string",
  "description": "string"
}
Response examples (200)
{
  "id": "string",
  "title": "string",
  "content": "string",
  "author": {
    "id": "string",
    "username": "string",
    "display_name": "string",
    "avatar_url": "string"
  },
  "created_at": "2025-05-04T09:42:00Z",
  "comment_count": 42,
  "last_comments_authors": [
    {
      "id": "string",
      "username": "string",
      "display_name": "string",
      "avatar_url": "string"
    }
  ],
  "reaction_counters": {
    "additionalProperty1": 42,
    "additionalProperty2": 42
  },
  "viewer_reactions": [
    "string"
  ]
}
Response examples (403)
{
  "type": "string",
  "title": "string",
  "status": 42,
  "detail": "string",
  "instance": "string"
}
Response examples (404)
{
  "type": "string",
  "title": "string",
  "status": 42,
  "detail": "string",
  "instance": "string"
}
Response examples (500)
{
  "type": "string",
  "title": "string",
  "status": 42,
  "detail": "string",
  "instance": "string"
}