Skip to content

Latest commit

 

History

History
49 lines (35 loc) · 909 Bytes

leave_space_mutation.md

File metadata and controls

49 lines (35 loc) · 909 Bytes
copyright link is
Copyright IBM Corp. 2017
leave-space-mutation
experimental

Leave Space

Concepts

The leaveSpace mutation allows the user to leave a space. The mutation accepts a Space ID as an argument and makes the request on behalf of the calling user. Currently this API can only be used to reject an invitation to a space. Otherwise it will return an error.

Schema

Leave Space Mutation

type MutationRoot {
  ...
  leaveSpace(input: SpaceLeaveInput!): SpaceLeaveMutation
}

type SpaceLeaveMutation {
  successful: Boolean!
}

type SpaceLeaveInput {
  id: String!
}

Example Request

Method: POST
URL: https://api.watsonwork.ibm.com/graphql
Headers: 'Content-Type: application/graphql' , 'x-graphql-view: PUBLIC, EXPERIMENTAL'
Body:
{
  mutation {
    leaveSpace(input: {id: "4aefed180dc04314ab737cffeef903f1"}) {
      successful
  }
}