Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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