Start a conversation

Update an Idea Comment

Sometimes, you might want to update the comment of your ideas. To do this, use the updateIdeaComment GraphQL API Call.

Requirements

You must have the Manage ideas comments permission set to Grant by the Administrator.

Example

This example shows how to update the idea comment from “This feature is applicable for mobile applications” to “This feature is applicable for both iOS and Android applications.” for the message ID: 123.

In the mutation, add the body content you want to update for your idea comment.

mutation {
  updateIdeaComment(
    id: "message:123"
    updateInput: {
      body: "This feature is applicable for both iOS and Android applications."
    }
  ) {
    result {
      id
      subject
      body
    }
  }
}

The response generates a unique ID for your comment. The response for the createIdeaComment mutation looks like this.

{
  "data": {
    "updateIdeaComment": {
      "result": {
        "id": "message:123",
        "subject": "Re: update of the feature applicability",
        "body": "This feature is applicable for both iOS and Android applications."
      }
    }
  }
}
Choose files or drag and drop files
Was this article helpful?
Yes
No
  1. ATLAS

  2. Posted
  3. Updated

Comments