Mutation
mutation DeleteMachineUser($input: DeleteMachineUserInput!) {
deleteMachineUser(input: $input) {
machineUser {
id
fullName
publicName
description
type
isCustomAgent
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"machineUserId": "id"
}
}Response
{
"data": {
"deleteMachineUser": {
"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
deleteMachineUser
Deletes a machine user and all of its API keys. The deleted machine user is returned in the response. Requires the machineUser:delete permission.
MUTATION
deleteMachineUser(input: DeleteMachineUserInput!): DeleteMachineUserOutput!Arguments
input
required
Returns
machineUser
error
Mutation
mutation DeleteMachineUser($input: DeleteMachineUserInput!) {
deleteMachineUser(input: $input) {
machineUser {
id
fullName
publicName
description
type
isCustomAgent
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"machineUserId": "id"
}
}Response
{
"data": {
"deleteMachineUser": {
"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?

