{"openapi":"3.1.0","info":{"title":"Apizie","version":"2.0.0","description":"One API key, one envelope, many public data sources."},"servers":[{"url":"https://zieapi.vercel.app"}],"security":[{"ApiKeyAuth":[]}],"paths":{"/v1/analytics:googleapis-smartdevicemanagement/smartdevicemanagement-enterprises-devices-execute-command":{"post":{"operationId":"analytics_googleapis_smartdevicemanagement_smartdevicemanagement_enterprises_devices_execute_command","summary":"Executes a command to device managed by the enterprise.","description":"POST /v1/{+name}:executeCommand","tags":["analytics"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name","body"],"properties":{"name":{"type":"string","description":"The name of the device requested. For example: \"enterprises/XYZ/devices/123\""},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/analytics:googleapis-smartdevicemanagement/smartdevicemanagement-enterprises-structures-rooms-get":{"get":{"operationId":"analytics_googleapis_smartdevicemanagement_smartdevicemanagement_enterprises_structures_rooms_get","summary":"Gets a room managed by the enterprise.","description":"GET /v1/{+name}","tags":["analytics"],"parameters":[{"name":"name","in":"query","required":true,"description":"The name of the room requested. For example: \"enterprises/XYZ/structures/ABC/rooms/123\".","schema":{"type":"string","description":"The name of the room requested. For example: \"enterprises/XYZ/structures/ABC/rooms/123\"."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/analytics:googleapis-smartdevicemanagement/smartdevicemanagement-enterprises-devices-list":{"get":{"operationId":"analytics_googleapis_smartdevicemanagement_smartdevicemanagement_enterprises_devices_list","summary":"Lists devices managed by the enterprise.","description":"GET /v1/{+parent}/devices","tags":["analytics"],"parameters":[{"name":"filter","in":"query","required":false,"description":"Optional filter to list devices. Filters can be done on: Device custom name (substring match): 'customName=wing'","schema":{"type":"string","description":"Optional filter to list devices. Filters can be done on: Device custom name (substring match): 'customName=wing'"}},{"name":"parent","in":"query","required":true,"description":"The parent enterprise to list devices under. E.g. \"enterprises/XYZ\".","schema":{"type":"string","description":"The parent enterprise to list devices under. E.g. \"enterprises/XYZ\"."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/analytics:googleapis-smartdevicemanagement/smartdevicemanagement-enterprises-structures-list":{"get":{"operationId":"analytics_googleapis_smartdevicemanagement_smartdevicemanagement_enterprises_structures_list","summary":"Lists structures managed by the enterprise.","description":"GET /v1/{+parent}/structures","tags":["analytics"],"parameters":[{"name":"filter","in":"query","required":false,"description":"Optional filter to list structures.","schema":{"type":"string","description":"Optional filter to list structures."}},{"name":"parent","in":"query","required":true,"description":"The parent enterprise to list structures under. E.g. \"enterprises/XYZ\".","schema":{"type":"string","description":"The parent enterprise to list structures under. E.g. \"enterprises/XYZ\"."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/analytics:googleapis-smartdevicemanagement/smartdevicemanagement-enterprises-structures-rooms-list":{"get":{"operationId":"analytics_googleapis_smartdevicemanagement_smartdevicemanagement_enterprises_structures_rooms_list","summary":"Lists rooms managed by the enterprise.","description":"GET /v1/{+parent}/rooms","tags":["analytics"],"parameters":[{"name":"parent","in":"query","required":true,"description":"The parent resource name of the rooms requested. For example: \"enterprises/XYZ/structures/ABC\".","schema":{"type":"string","description":"The parent resource name of the rooms requested. For example: \"enterprises/XYZ/structures/ABC\"."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}}},"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"x-api-key"}},"schemas":{"RunEnvelope":{"type":"object","required":["project","data","timestamp"],"properties":{"project":{"type":"string","example":"dev-tools:hash"},"data":{},"timestamp":{"type":"string","format":"date-time"}}},"ErrorEnvelope":{"type":"object","properties":{"content":{},"message":{"type":"string"},"errors":{"type":"array","items":{}},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"responses":{"Error":{"description":"Invalid key, plan gate, rate limit or upstream failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}}