Skip to content

Latest commit

 

History

History
52 lines (41 loc) · 1.04 KB

V1_delete_space_template.md

File metadata and controls

52 lines (41 loc) · 1.04 KB
copyright link is
Copyright IBM Corp. 2018
delete-space-template
beta

Delete a Space Template

A user can delete a custom space template with the deleteSpaceTemplate mutation.

Schema

Delete Space Template Mutation

type MutationRoot {
  ...
  deleteSpaceTemplate(input: DeleteSpaceTemplateInput!): DeleteSpaceTemplateMutation
}

The DeleteSpaceTemplateMutation returned has a single property, a boolean value indicating whether or not the delete operation was successful:

type DeleteSpaceTemplateMutation {
  successful: Boolean!
}

The DeleteSpaceTemplateInput likewise has only a single, required property, the id of the space template to be deleted:

type DeleteSpaceTemplateInput {
  id: String!
}

Example request

Method: POST
URL: https://api.watsonwork.ibm.com/graphql
Headers: 'Content-Type: application/graphql' , 'x-graphql-view: PUBLIC, BETA'
Body:
{
  mutation {
    deleteSpaceTemplate(input: {id: "my-custom-template-id"}) {
      successful
    }
  }
}