Hello,
I tried following this tutorial from the NerdGraph documentation, but unfortunately I get an error messsage when I try to create the monitor. I’m wondering if the documentation is correct or if this funtionality hasn’t been implemented yet.
my API call:
(I’ve tried both curl and the online query builder.)
mutation {
syntheticsCreateScriptApiMonitor (
accountId: 1111111,
monitor: {
locations: {
public: ["Paris, FR"]
},
name: "TEST",
period: EVERY_DAY,
runtime: {
runtimeType: "NODE_API",
runtimeTypeVersion: "16.10.0",
scriptLanguage: "JAVASCRIPT"
}
script: "test",
status: ENABLED
}
) {
errors {
description
type
}
}
}
The response:
{
"data": {
"syntheticsCreateScriptApiMonitor": null
},
"errors": [
{
"locations": [
{
"column": 5,
"line": 2
}
],
"message": "Cannot query field \"syntheticsCreateScriptApiMonitor\" on type \"RootMutationType\".",
"path": [
"syntheticsCreateScriptApiMonitor"
]
}
]
}
Thank you in advance.