curl --request POST \
--url https://api2.rhombussystems.com/api/scenequery/triggerPrompt \
--header 'Content-Type: application/json' \
--header 'x-auth-apikey: <api-key>' \
--header 'x-auth-scheme: <x-auth-scheme>' \
--data '
{
"deviceFacetUuid": "AAAAAAAAAAAAAAAAAAAAAA.v0",
"prompt": "Count people in the scene",
"promptType": "COUNT",
"region": {
"coordinates": [
{
"x": 123,
"y": 123
}
]
},
"timestampMs": 1640995200000
}
'{
"error": true,
"errorMsg": "<string>",
"event": {
"checkCondition": true,
"image": "<string>",
"imageOffsets": [
123
],
"prompt": "<string>",
"timestampMs": 123,
"value": "<string>"
},
"warningMsg": "<string>"
}Trigger scene query with a custom prompt
curl --request POST \
--url https://api2.rhombussystems.com/api/scenequery/triggerPrompt \
--header 'Content-Type: application/json' \
--header 'x-auth-apikey: <api-key>' \
--header 'x-auth-scheme: <x-auth-scheme>' \
--data '
{
"deviceFacetUuid": "AAAAAAAAAAAAAAAAAAAAAA.v0",
"prompt": "Count people in the scene",
"promptType": "COUNT",
"region": {
"coordinates": [
{
"x": 123,
"y": 123
}
]
},
"timestampMs": 1640995200000
}
'{
"error": true,
"errorMsg": "<string>",
"event": {
"checkCondition": true,
"image": "<string>",
"imageOffsets": [
123
],
"prompt": "<string>",
"timestampMs": 123,
"value": "<string>"
},
"warningMsg": "<string>"
}Your Rhombus API key. Must be accompanied by the x-auth-scheme header set to api-token (or partner-api-token for partner endpoints).
Authentication scheme identifier. Use api-token for standard API key authentication, partner-api-token for partner API key authentication. Must be paired with the x-auth-apikey header containing your API key.
api-token, api, partner-api-token, partner-api Request object for triggering a prompt.
RUUID with optional appended facet information
"AAAAAAAAAAAAAAAAAAAAAA.v0"
Prompt text to trigger
"Count people in the scene"
COUNT, PERCENT, BOOLEAN, TEXT Show child attributes
Timestamp in milliseconds for the trigger
1640995200000
Was this page helpful?