Skip to content

Update a Comment

Terminal window
https://mapi.storyblok.com/v1/spaces/:space_id/discussions/:discussion_id/comments/:comment_id

Update comments in a particular discussion using the discussion ID and comment ID

  • :space_id required number

    Numeric ID of a space

  • :discussion_id required number

    The ID of the discussion

  • :comment_id required number

    The ID for a specific comment in a discussion

  • comment The Comments Object

    The comments object

    Show The Comments Object child properties
    • message null | string

      The message of a comment, with the datatype of null or a string.

    • message_json required object

      The message_json property is an array containing JSON objects representing the comments’ messages.

      Show message_json object child properties
      • text string

        The text part

      • type string

        The type

      • attrs object

        Attributes

curl "https://mapi.storyblok.com/v1/spaces/606/discussions/2345/comments/456" \
-X PUT \
-H "Authorization: YOUR_OAUTH_TOKEN" \
-H "Content-Type: application/json" \
-d "{\"comment\":{\"message_json\":[{\"text\":\"Updated Comment \",\"type\":\"text\"}]}}"