Forum Discussion
11 months ago
Any chance you got this working? Trying to figure out how to add a custom property to a website via API as well. I’m actually not sure that the API supports it as it isn’t mentioned in the documentation.
Edit: Nevermind, I just got it working. It looks like it has to be set in the “properties” object, not “customProperties” like you would use on a device record. For example:
{
"displayName": "Website Monitor 1",
"description": "New website",
"properties": [
{
"name": "myProperty",
"value": "abcdefg"
},
{
"name": "another.property",
"value": "hijklmnop"
}
]
}