English
English
简体中文
Contact Us
Register
Log In

Modify function point name

Last Updated on : 2022-04-29 05:35:34download

You can modify the function point name through this API.

API address

PUT: /v1.0/devices/{device_id}/functions/{function_code}

Request parameter

Parameter nameTypeINRequiredDescription
device_idStringuritrueDevice ID
function_codeStringuritrueFunction point code

Description of body

Parameter nameTypeINRequiredDescription
nameString trueModified function point name

Return parameter

Parameter nameTypeDescription
resultBooleanWhether the modification was successful

Request example

PUT: /v1.0/devices/vdevo15608303530****/functions/switch_1
{
  "name": "Master Switch"
}

Return example

true

Error code

For more information, see error code.