- 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
/scenario_groups
请求参数
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
必需
name
string
必需
name_en
string
必需
tags
array
必需
示例
{
"parent_id": 0,
"name": "dev",
"name_en": "dev",
"tags": []
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/scenario_groups' \
--header 'Authorization: bearer {{token}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"parent_id": 0,
"name": "dev",
"name_en": "dev",
"tags": []
}'
返回响应
🟢200成功
application/json
Body
object {0}
示例
{
"code": 200,
"result": {
"lever": null,
"evaluation_standard": null,
"system_data": false,
"id": 9250,
"created_at": "2024-08-22T16:58:43.826527+08:00",
"name_en": null,
"environment": null,
"ui_entities_json": null,
"array_elements": null,
"user_id": 1,
"invalid": 0,
"name": "dev",
"tags_en": null,
"parent_id": 0,
"map_id": null,
"type": "dir",
"extend_content": null,
"tags": [],
"company_id": 1,
"desc_en": null,
"open_scenario_json": {},
"is_temp": false,
"modified_at": "2024-08-22T16:58:43.826555+08:00",
"criterion_id": null,
"desc": "",
"traffic_flow": null,
"stop_trigger": null
},
"message": ""
}
修改于 2024-08-22 08:58:58