Sometimes, you need to update the idea status key and comment on an idea message. To do this, you can use the Idea Status GraphQL API Call.
Requirements
You must have the Change idea status permission set to Grant by the Administrator.
Example
This example shows how to update the status key and comment on an idea message.
In the updateIdeaStatus mutation, you can update the status key from In review to accepted and add a comment that the status has changed for the message ID: 559.
mutation {
updateIdeaStatus(
id:"message:559",
statusKey:"accepted",
comment:" status changed") {
result
}
}
Here is the response to the GraphQL API call.
{
"data": {
"updateIdeaStatus": {
"result": true
}
}
}
ATLAS
Comments