Skip to content

Instantly share code, notes, and snippets.

@brettmillerb
Created August 25, 2020 23:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brettmillerb/fbd60a53c41d28bcbf50e61c18b76e98 to your computer and use it in GitHub Desktop.
Save brettmillerb/fbd60a53c41d28bcbf50e61c18b76e98 to your computer and use it in GitHub Desktop.
Mindville API object functions
function New-ObjectAttribute {
[CmdletBinding()]
param (
[string]
$AttributeId,
[string]
$ObjectAttributeValue
)
@{
objectTypeAttributeId = $AttributeId
objectAttributeValues = @(
@{
"value" = $ObjectAttributeValue
}
)
}
}
function New-ObjectType {
[CmdletBinding()]
param (
[string]
$ObjectTypeId,
[hashtable]
$ObjectAttribute
)
@{
objectTypeId = $InsightDeviceObjectDetails.id
attributes = $ObjectAttribute
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment