Skip to main content
Feedback

Update a Space

Use this mutation to update the logo and the description of an existing Space that is created by the account that is authorizing this request. This mutation takes the SpaceUpdateInput object as input.

Code samples

Input syntax

mutation($file:Upload) {
spaceUpdate(input: {
id: ID!,
name: String!
description: String
Theme: SpaceThemeInput


}) {
id
name
description
createdDate
createdByAccountId
modifiedDate
sharedIpacks {
id
}
accountGroup {
id
}
modifiedByAccountId
url
theme{
logoAltTxt
logoUrl
}
}
}

FieldTypeDescriptionRequired/Optional
idIDThe unique id assigned by the system to the Space.Required
nameStringThe Space Name.Required
descriptionStringThe Space Description.Optional
 SpaceThemeInputThe Space theme data.Optional

SpaceThemeInput

FieldTypeDescriptionRequired/Optional
logoAltTxtStringLogo Alternate Text.Optional
logoUploadThe Space Logo. Must be a svg or png or jpg file and the size should be less than or equal to 256 KBOptional

Return syntax

{
"data": {
"spaceUpdate": {
"id": "ID",
"name": "String",
"description": "String",
"createdDate": "String",
"createdByAccountId": "String",
"modifiedDate": "String",
"sharedIpacks": {
"id": "ID"
},
"accountGroup": {
"id": "ID"
},
"modifiedByAccountId": "String",
"url": "String",
"theme": {
"logoAltTxt": "String",
"logoUrl": "String"
}
}
}
}

Implementation

To update a Space, send the mutation request to platform.boomi.com/graphqlwith following headers:

KeyValue
AuthorizationBearer <Token\>
Acceptapplication/json

JSON request

Sample mutation that takes the id, name, and the description to update the Space description.

mutation($file:Upload) {
spaceUpdate(input: {
id: "84957126-acc4-4175-8480-****",
name: "test1"
description: "This is a sample description of the Space"
theme:{
logoAltTxt: "String"
logo: $file
}


}) {
id
name
description
createdDate
createdByAccountId
modifiedDate
sharedIpacks {
id
}
accountGroup {
id
}
modifiedByAccountId
url
theme{
logoAltTxt
logoUrl

}
}
}

JSON response

{
"data": {
"spaceUpdate": {
"id": "84957126-acc4-4175-8480-****",
"name": " testing logos2",
"description": null,
"createdDate": "2023-04-13 11:57:12.0",
"createdByAccountId": "demoaccount-XOCI9G",
"modifiedDate": "2023-04-13 12:18:42.0",
"sharedIpacks": null,
"accountGroup": {
"id": "b1bddd1dd41d-d59623-401ddb-8a9y01-*****"
},
"modifiedByAccountId": null,
"url": "https://space.boomi.com?guid=gh887hhuj",
"theme": {
"logoAltTxt": "testing",
"logoUrl": null
}
}
}
}

On this Page