{ "opencollection": "1.0.0", "info": { "name": "Tuya Device Management Device Control Device Users API", "version": "1.0" }, "request": { "auth": { "type": "apikey", "key": "client_id", "value": "{{client_id}}", "placement": "header" } }, "items": [ { "info": { "name": "Device Users", "type": "folder" }, "items": [ { "info": { "name": "Add Device User", "type": "http" }, "http": { "method": "POST", "url": "https://openapi.tuyaus.com/v1.0/devices/:device_id/users", "params": [ { "name": "device_id", "value": "", "type": "path", "description": "Unique device identifier" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Associate a user with a device to grant access permissions." }, { "info": { "name": "Get Device User", "type": "http" }, "http": { "method": "GET", "url": "https://openapi.tuyaus.com/v1.0/devices/:device_id/users/:user_id", "params": [ { "name": "device_id", "value": "", "type": "path", "description": "Unique device identifier" }, { "name": "user_id", "value": "", "type": "path", "description": "User ID" } ] }, "docs": "Retrieve information about a user associated with a device." }, { "info": { "name": "Update Device User", "type": "http" }, "http": { "method": "PUT", "url": "https://openapi.tuyaus.com/v1.0/devices/:device_id/users/:user_id", "params": [ { "name": "device_id", "value": "", "type": "path", "description": "Unique device identifier" }, { "name": "user_id", "value": "", "type": "path", "description": "User ID" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Modify a user's role or permissions for a device." }, { "info": { "name": "Remove Device User", "type": "http" }, "http": { "method": "DELETE", "url": "https://openapi.tuyaus.com/v1.0/devices/:device_id/users/:user_id", "params": [ { "name": "device_id", "value": "", "type": "path", "description": "Unique device identifier" }, { "name": "user_id", "value": "", "type": "path", "description": "User ID" } ] }, "docs": "Remove a user's association with a device." } ] } ], "bundled": true }