mutation CreateSpace($input: CreateSpaceInput!) {
createSpace(input: $input) {
clientMutationId
collection {
avatarUrls
createdAt
description
explorable
galleryGroups {
canDelete
galleryPage
galleryType
id
isEnabled
label
}
id
}
collectionNewlyCreated
errors
space {
avatarDarkModeUrl
avatarUrl
bookmarkedAt
brandingImages {
imageType
url
}
createdAt
discoverable
}
}
}{
"input": {
"templateCanonicalName": "string",
"title": "string"
}
}{
"data": {
"createSpace": {
"clientMutationId": "string",
"collection": {
"avatarUrls": [
"string"
],
"createdAt": "value",
"description": "string",
"explorable": true,
"galleryGroups": [
{
"canDelete": true,
"galleryPage": "DISCOVERY",
"galleryType": "BUNDLES",
"id": "id",
"isEnabled": true,
"label": "string"
}
],
"id": "id"
},
"collectionNewlyCreated": true,
"errors": [
"string"
],
"space": {
"avatarDarkModeUrl": "string",
"avatarUrl": "string",
"bookmarkedAt": "value",
"brandingImages": [
{
"imageType": "AVATAR",
"url": "string"
}
],
"createdAt": "value",
"discoverable": true
}
}
}
}createSpace
Create a new Space in the Network from a Space template. The Space starts private, hidden from discovery, and visible only to the Host until further configuration.
Required scope: host:write:network_spaces
createSpace(input: CreateSpaceInput!): CreateSpacePayloadArguments
Parameters for CreateSpace
Returns
A unique identifier for the client performing the mutation.
The collection resolved or created for the Space. Reported whenever Collection resolution succeeded, even if Space creation then failed — the Collection can survive that failure, so check this to see whether one was left behind. Null only when no Collection was resolved at all.
True when this call created the collection rather than placing the Space in an existing one. Reported alongside collection under the same conditions, including when Space creation then failed.
mutation CreateSpace($input: CreateSpaceInput!) {
createSpace(input: $input) {
clientMutationId
collection {
avatarUrls
createdAt
description
explorable
galleryGroups {
canDelete
galleryPage
galleryType
id
isEnabled
label
}
id
}
collectionNewlyCreated
errors
space {
avatarDarkModeUrl
avatarUrl
bookmarkedAt
brandingImages {
imageType
url
}
createdAt
discoverable
}
}
}{
"input": {
"templateCanonicalName": "string",
"title": "string"
}
}{
"data": {
"createSpace": {
"clientMutationId": "string",
"collection": {
"avatarUrls": [
"string"
],
"createdAt": "value",
"description": "string",
"explorable": true,
"galleryGroups": [
{
"canDelete": true,
"galleryPage": "DISCOVERY",
"galleryType": "BUNDLES",
"id": "id",
"isEnabled": true,
"label": "string"
}
],
"id": "id"
},
"collectionNewlyCreated": true,
"errors": [
"string"
],
"space": {
"avatarDarkModeUrl": "string",
"avatarUrl": "string",
"bookmarkedAt": "value",
"brandingImages": [
{
"imageType": "AVATAR",
"url": "string"
}
],
"createdAt": "value",
"discoverable": true
}
}
}
}