copyright | link | is |
---|---|---|
Copyright IBM Corp. 2018 |
get-space-template |
beta |
A user can fetch details of a space template by passing its id to the spaceTemplate query, provided the user either created the template or is subscribed to the offering with which the template is associated.
type QueryRoot {
...
spaceTemplate(id: ID!): SpaceTemplate
}
Method: POST
URL: https://api.watsonwork.ibm.com/graphql
Headers: 'Content-Type: application/graphql' , 'x-graphql-view: PUBLIC, BETA'
Body:
{
spaceTemplate(id: "template-id") {
name
requiredApps {
items {
id
}
}
properties {
items {
id
type
displayName
... on SpaceListProperty {
defaultValue
acceptableValues {
id
displayName
}
}
... on SpaceTextProperty {
defaultValue
}
... on SpaceBooleanProperty {
defaultStringValue
}
}
}
spaceStatus {
defaultValue
acceptableValues {
id
displayName
}
}
}
}
Don’t forget to replace the "template-id" argument with the ID of a real template.
For more information see Space Templates