| copyright | Copyright IBM Corp. 2018 |
|---|---|
| link | delete-space-template |
| is | beta |
A user can delete a custom space template with the deleteSpaceTemplate 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!
}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
}
}
}