Mutation
mutation UpdateMachineUser($input: UpdateMachineUserInput!) {
updateMachineUser(input: $input) {
machineUser {
id
fullName
publicName
description
type
isCustomAgent
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"machineUserId": "id"
}
}Response
{
"data": {
"updateMachineUser": {
"machineUser": {
"id": "id",
"fullName": "string",
"publicName": "string",
"description": "string",
"type": "API_USER",
"isCustomAgent": true
},
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}Mutations
updateMachineUser
Updates the name, description, or avatar of an existing machine user. At least one of fullName, publicName, description, or avatar must be provided. Requires the machineUser:edit permission.
MUTATION
updateMachineUser(input: UpdateMachineUserInput!): UpdateMachineUserOutput!Arguments
input
required
Returns
machineUser
error
Mutation
mutation UpdateMachineUser($input: UpdateMachineUserInput!) {
updateMachineUser(input: $input) {
machineUser {
id
fullName
publicName
description
type
isCustomAgent
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"machineUserId": "id"
}
}Response
{
"data": {
"updateMachineUser": {
"machineUser": {
"id": "id",
"fullName": "string",
"publicName": "string",
"description": "string",
"type": "API_USER",
"isCustomAgent": true
},
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}Was this page helpful?

