copyright | link | is |
---|---|---|
Copyright IBM Corp. 2017, 2018 |
delete-a-message |
published |
The deleteMessage mutation allows the user to delete a message. Currently this is only applicable to messages which have been authored by the user. The mutation accepts a Message ID as an argument and makes the request on behalf of the calling user.
type MutationRoot {
...
deleteMessage(input: DeleteMessageInput!): DeleteOutput
}
type DeleteOutput {
successful: Boolean!
}
type DeleteMessageInput {
id: String!
}
Method: POST
URL: https://api.watsonwork.ibm.com/graphql
Headers: 'Content-Type: application/graphql' , 'x-graphql-view: PUBLIC'
Body:
{
mutation {
deleteMessage(input: {id: "5a209f74e4b0faa757ac1afd"}) {
successful
}
}