copyright | link | is |
---|---|---|
Copyright IBM Corp. 2017 |
update-space-details |
published |
Is your space in need of a change? Take a look as this simple GraphQL mutation to update the space title:
mutation updateSpaceTitle {
updateSpace(input: { id: "space-id", title: "Space title", members: ["user3-id", "user4-id"]}){
space {
title
}
}
}
Get the conversation rolling by adding more members. Combine the list of IDs of the new members along with the memberOperation ADD;
mutation updateSpaceAddMembers {
updateSpace(input: { id: "space-id", title: "Space title", members: ["user3-id", "user4-id"], memberOperation: ADD}){
memberIdsChanged
space {
title
membersUpdated
members {
items {
email
displayName
}
}
}
}
}
Space feeling a little crowded? Remove IDs of members using the memberOperation REMOVE
mutation updateSpaceRemoveMembers {
updateSpace(input: { id: "space-id", title: "Space title", members: ["user3-id", "user4-id"], memberOperation: REMOVE}){
memberIdsChanged
space {
title
membersUpdated
members {
items {
email
displayName
}
}
}
}
}