{"type":"api","title":"Update Asset by Id","meta":{"id":"/apps/pubhub/media/sea-api/7c15e51e49c0ffa2ba78927684d875bb631dffa7/d5f79626-4df3-3cd0-aec3-6ecc5b860dd3","swagger":"2.0","info":{"description":"Deals with Remote Sessions, Access Management (Access Control Groups), and System Management (Network Devices and Assets) APIs","license":{"name":"Licensing is primarily subscription based.","url":"https://www.cisco.com"},"termsOfService":"http://swagger.io/terms/","title":"Secure Equipment Access (SEA) Management APIs","version":"1.0.0"},"host":"us.ciscoiot.com","basePath":"/nbapi/sramgmt/ext","schemes":["https"],"securityDefinitions":{"access_token":{"in":"header","name":"x-access-token","type":"apiKey"},"bearer_token":{"in":"header","name":"Authorization","type":"apiKey"}},"security":[{"access_token":[]},{"bearer_token":[]}],"x-parser-conf":{"apiKeyGenerator":{"$remoteModule":"./config/apikey.js"},"labelConfig":{"endpoint":"summary"}}},"spec":{"consumes":["application/json"],"description":"Update an Asset by id\u003cbr /\u003eOne of the below roles is needed to invoke this API\u003cbr /\u003e- SEA System Admin","operationId":"update_device_by_id","parameters":[{"format":"uuid","in":"path","name":"device_id","required":true,"type":"string"},{"format":"uuid","in":"header","name":"x-tenant-id","required":true,"type":"string"},{"in":"body","name":"body","required":true,"schema":{"type":"object","properties":{"description":{"type":"string","example":"test description"},"device_identifier":{"type":"string","description":"Any unique string recognizable by the customer (ex: device serial number).","example":"IE-3400-8P2S+FOC1408V0FJ"},"host":{"type":"string","format":"hostname","description":"Host can be a valid domain name (e.g. www.example.com), IP address (e.g. 1.1.1.1), or hostname (e.g. localhost)","example":"127.0.0.1"},"name":{"type":"string","example":"IE-3400-8P2S+FCW1408P9S2TEMP (self)"},"probe_enabled_ping":{"type":"boolean","example":true},"probe_period":{"type":"integer","minimum":0,"example":14},"probe_timeout":{"type":"integer","minimum":0,"example":11},"type":{"type":"string","example":"PLC"}},"required":["name"],"$$ref":"#/definitions/input_put_device"}}],"produces":["application/json"],"responses":{"200":{"description":"Successful operation. Asset updated.","schema":{"type":"object","properties":{"device_id":{"type":"string","format":"uuid","example":"e4295b7d-6bd8-4ac1-80d5-f041c8ce60e9"}},"$$ref":"#/definitions/response_device_id"}},"401":{"description":"Bad request","schema":{"example":"Authentication Token is invalid","type":"string"}},"403":{"description":"Forbidden","schema":{"example":"Permission denied to access the resource","type":"string"}},"404":{"description":"Asset not found.","schema":{"properties":{"debug_message":{"items":{"type":"string"},"type":"array"},"error_code":{"type":"string"},"message":{"type":"string"}},"type":"object","$$ref":"#/definitions/response_error"}},"500":{"description":"Internal server error","schema":{"example":"Could not connect to server","type":"string"}}},"summary":"Update Asset by Id","tags":["Assets"],"__originalOperationId":"update_device_by_id","security":[{"access_token":[]},{"bearer_token":[]}],"method":"put","path":"/devices/{device_id}"}}