Skip to main content
PUT
/
posts
/
{postId}
/
comments
/
{commentId}
Update a comment on a post
curl --request PUT \
  --url https://{subdomain}.nudj.cx/api/v2/integration/posts/{postId}/comments/{commentId} \
  --header 'Content-Type: application/json' \
  --header 'x-api-token: <api-key>' \
  --data '{
  "content": "<string>",
  "imageUrl": "<string>"
}'
{
  "id": "<string>",
  "organisationId": "<string>",
  "communityId": "<string>",
  "discussionId": "<string>",
  "parentId": "<string>",
  "content": "<string>",
  "imageUrl": "<string>",
  "createdAt": "<string>",
  "createdBy": "<string>",
  "updatedAt": "<string>",
  "updatedBy": "<string>",
  "username": "<string>",
  "displayName": "<string>",
  "profilePictureUrl": "<string>"
}

Authorizations

x-api-token
string
header
required

Path Parameters

commentId
string
required
postId
string
required

Body

application/json
content
string

The content of the comment

Minimum length: 1
imageUrl
string | null

The url of the image attached to the comment

Response

Successful response

A comment

id
string
required

The id of the comment

organisationId
string
required

The id of the organisation the comment belongs to

communityId
string
required

The id of the community the comment belongs to

discussionId
string
required

The id of the discussion the comment belongs to

content
string
required

The content of the comment

Minimum length: 1
createdAt
string
required

The date the comment was created

createdBy
string
required

The id of the user who created the comment

updatedAt
string
required

The date the comment was last updated

updatedBy
string
required

The id of the user who last updated the comment

username
string
required

The username of the user who created the comment

displayName
string
required

The display name of the user who created the comment

parentId
string | null

The id of the parent comment

imageUrl
string | null

The url of the image attached to the comment

profilePictureUrl
string | null

The url of the profile picture of the user who created the comment

I