API Stability Preview

The setOldObjectSampleEnabled() GraphQL mutation is used to toggle the OldObjectSample event on and off.

Syntax

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

graphql
setOldObjectSampleEnabled(
      vhost: integer!, 
      oldObjectSampleEnabled: boolean!
   ): boolean!

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

Show:
graphql
mutation {
  setOldObjectSampleEnabled(
     vhost: 2,
     oldObjectSampleEnabled: true
  )
}
Example Responses
Show:
json
{
  "data": {
    "setOldObjectSampleEnabled": true
  }
}

There are no special datatypes for this mutation field.