API Stability Long-Term

The updateGroup() GraphQL mutation may be used to update a given group in LogScale.

For more information on user groups, see the Manage Groups documentation page.

Syntax

Below is the syntax for the updateGroup() mutation field:

graphql
updateGroup(
      input: UpdateGroupInput!
   ): UpdateGroupMutation!

Below is an example of how this mutation field might be used:

Show:
graphql
mutation {
  updateGroup( input:
    { groupId: "sQjSEU6MDp6W9HrwAejmL9yHJlk6Q1sp",
      displayName: "cool-kids"
    }
  )
  { group { userCount } }
}
Example Responses
Show:
json
{
  "data": {
    "updateGroup": {
      "group": {
        "userCount": 6
      }
    }
  }
}

Given Datatypes

For UpdateGroupInput, there are a few parameters that may be given. Below is a list of them along with a description of each:

Table: UpdateGroupInput

ParameterTypeRequiredDefaultStabilityDescription
Some arguments may be required, as indicated in the Required column. For some fields, this column indicates that a result will always be returned for this column.
Table last updated: Sep 23, 2024
displayNamestring  Long-TermThe display name for the group.
groupIdstringyes Long-TermThe unique identifier of the group to update.
lookupNamestring  Long-TermThe lookup name for the group.

Returned Datatypes

The returned datatype UpdateGroupMutation has one parameter, and several sub-parameters. Click below on the name of the parameter to see the table with the sub-parameters:

Table: UpdateGroupMutation

ParameterTypeRequiredDefaultStabilityDescription
Some arguments may be required, as indicated in the Required column. For some fields, this column indicates that a result will always be returned for this column.
Table last updated: Apr 2, 2025
groupGroupyes Long-TermThe group to update. See Group.