- OASIS SIM(废弃)
- sensors
- dynamics
- cars
- car_models
- jobs
- tasks
- scenarios
- scenario_groups
- scenario_elements
- maps
- test_cases
- scores
- traffic_flows
- controllers
- weathers
- lights
- logs(废弃)
- emails
- users
- evaluates
- file_operator
- trashes(已废弃)
- configs
- licenses
- 查询tokenGET
移动场景组
开发中
POST
/scenarios/move
请求参数
Header 参数
Authorization
string
必需
示例值:
bearer {{token}}
Content-Type
string
必需
示例值:
application/json
User-Agent
string
可选
示例值:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36
Body 参数application/json
parent_id
integer
必需
select_ids
array[integer]
必需
示例
{
"parent_id": 9264, // 目标目录
"select_ids": [ //待移动的场景ID
9261
]
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/scenarios/move' \
--header 'Authorization: bearer {{token}}' \
--header 'User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36' \
--header 'Content-Type: application/json' \
--data-raw '{
"parent_id": 9264, // 目标目录
"select_ids": [ //待移动的场景ID
9261
]
}'
返回响应
🟢200成功
application/json
Body
object {0}
示例
{
"code": 200,
"result": {
"id": 0,
"name": null,
"type": "dir",
"tags": [],
"level": 0,
"total": 66,
"children": [
{
"id": 9264,
"name": "test",
"type": "dir",
"tags": [],
"level": 1,
"total": 1,
"children": [],
"system_data": false,
"name_en": null,
"tags_en": null,
"stop_trigger": ""
},
{
"id": 9259,
"name": "dev",
"type": "dir",
"tags": [],
"level": 1,
"total": 0,
"name_en": null,
"tags_en": null,
"stop_trigger": "",
"system_data": false
},
{
"id": 9255,
"name": "kuaishuju",
"type": "dir",
"tags": [],
"level": 1,
"total": 6,
"children": [],
"system_data": false,
"name_en": null,
"tags_en": null,
"stop_trigger": ""
},
{
"id": 9246,
"name": "TEST 1",
"type": "dir",
"tags": [],
"level": 1,
"total": 8,
"children": [],
"system_data": false,
"name_en": null,
"tags_en": null,
"stop_trigger": ""
},
{
"id": 9185,
"name": "CNCAP",
"type": "dir",
"tags": [],
"level": 1,
"total": 51,
"children": [
{
"id": 9187,
"name": "BSD",
"type": "dir",
"tags": [
"测试盲区监控功能"
],
"level": 2,
"total": 4,
"children": [],
"system_data": true,
"name_en": null,
"tags_en": null,
"stop_trigger": ""
},
{
"id": 9192,
"name": "LDW",
"type": "dir",
"tags": [
"测试车道偏离预警功能"
],
"level": 2,
"total": 6,
"children": [],
"system_data": true,
"name_en": null,
"tags_en": null,
"stop_trigger": ""
},
{
"id": 9199,
"name": "AEB",
"type": "dir",
"tags": [
"测试自动紧急制动功能"
],
"level": 2,
"total": 20,
"children": [],
"system_data": true,
"name_en": null,
"tags_en": null,
"stop_trigger": ""
},
{
"id": 9220,
"name": "DOW",
"type": "dir",
"tags": [
"测试车门开启预警功能"
],
"level": 2,
"total": 1,
"children": [],
"system_data": true,
"name_en": null,
"tags_en": null,
"stop_trigger": ""
},
{
"id": 9222,
"name": "FCW",
"type": "dir",
"tags": [
"测试碰撞预警功能"
],
"level": 2,
"total": 10,
"children": [],
"system_data": true,
"name_en": null,
"tags_en": null,
"stop_trigger": ""
},
{
"id": 9233,
"name": "FalseReactio",
"type": "dir",
"tags": [
"测试紧急制动误作用功能"
],
"level": 2,
"total": 4,
"children": [],
"system_data": true,
"name_en": null,
"tags_en": null,
"stop_trigger": ""
},
{
"id": 9238,
"name": "LSS",
"type": "dir",
"tags": [
"测试车道辅助系统功能"
],
"level": 2,
"total": 6,
"children": [],
"system_data": true,
"name_en": null,
"tags_en": null,
"stop_trigger": ""
}
],
"system_data": true,
"name_en": null,
"tags_en": null,
"stop_trigger": ""
}
],
"system_data": 0,
"name_en": "",
"tags_en": "",
"stop_trigger": ""
},
"message": ""
}
修改于 2024-08-22 08:47:22