Skip to content

Latest commit

 

History

History
47 lines (35 loc) · 877 Bytes

V1_delete_message.md

File metadata and controls

47 lines (35 loc) · 877 Bytes
copyright link is
Copyright IBM Corp. 2017, 2018
delete-a-message
published

Delete a message

Concepts

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.

Schema

Delete Message Mutation

type MutationRoot {
  ...
  deleteMessage(input: DeleteMessageInput!): DeleteOutput
}

type DeleteOutput {
  successful: Boolean!
}

type DeleteMessageInput {
  id: String!
}

Example Request

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
  }
}