Data Dimension Authorization | Enterprise-level Authorization | This API requires enterprise-level authorization. Both enterprise-level and agent-level authorization accounts can call this API. Please refer to Authorization Methods. |
---|
Interface Dimension Authorization | Default Authorization | This API is granted by default, so you don't need to apply for interface dimension authorization separately for your authorization account. Please refer to Authorization Methods. |
---|
Region | Entry Point |
---|---|
China Region | https://openapi.orionstar.com |
Europe Region | https://global-openapi.orionstar.com |
USA Region | https://us-openapi.orionstar.com |
Japan Region | https://jp-openapi.orionstar.com |
HTTP URL Path | /v1/robot/modify_robot |
---|---|
HTTP Method | POST |
Content-Type | application/x-www-form-urlencoded |
Parameter | Type | Required | Description |
---|---|---|---|
robot_sn | string | Yes | Robot SN |
robot | jsonString | Yes | Robot information object in JSON format, please refer to robot - Robot Information Object. For example: {"robot_name":"test_name"} |
Parameter | Type | Required | Description |
---|---|---|---|
robot_name | string | No | Name of the robot |
# Please replace the entry point with yours according to your region curl --location 'https://global-openapi.orionstar.com/v1/robot/modify_robot' \ --header 'Authorization: Bearer YOUR-ACCESS-TOKEN' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --data-urlencode 'robot_sn=test_sn' \ --data-urlencode 'robot={"robot_name":"test_name"}'
Parameter | Type | Description |
---|---|---|
code | int | Error code. 0 means success, non-zero means failure, Please refer to Error Codes. |
msg | string | Error description. When there is a failure, a specific error description will be provided. |
req_id | string | Log tracking ID. When encountering problems that require assistance from OrionStar, please provide this tracking ID value. |
data | object | Business data object, see below for details Response Body Data Object. |
Parameter | Type | Description |
---|---|---|
robot | object | Robot information object. Please refer to robot - Robot Information Object. |
Parameter | Type | Description |
---|---|---|
ov_corpid | string | enterprise ID |
robot_uuid | string | Robot UUID |
robot_sn | string | Robot SN |
robot_name | string | Robot name |
robot_version | string | Robot ROM version, for example: V9.7.2024041200.1234US |
robot_model | string | Robot model, for example: OS-R-DR01S |
bind_time | string | Last time the robot was bound to the current enterprise. Integer timestamp in seconds. For example: 1711966681. |
expires_time | string | Expiry time of the lease, valid only for leased robots. Integer timestamp in seconds. For example: 1711966681. |
online_status | string | Robot online status. Online status is determined based on the heartbeats sent by the robot, with updates having approximately a 15-second delay. 0: Offline 1: Online. |
{ "code": 0, "msg": "", "data" : { "robot": { "ov_corpid": "orion.ovs.entprise.12345678", "robot_uuid": "test_uuid", "robot_sn": "test_sn", "robot_name": "test_name", "robot_version": "V9.7.2024041200.1234US", "robot_model": "OS-R-DR01S", "bind_time": "1711966681", "online_status": "1" } } }