Browser Automation
FreshManage automation tasks for browser environments.
Query Task
URL: http://localhost:40185/api/v1/browser/task/queryMethod: POST
| Parameter | Required | Type | Description |
|---|---|---|---|
| ids | Yes | array[string] | Task IDs |
Response (Task)
| Field | Type | Description |
|---|---|---|
| id | string | Task ID |
| status | integer | Task status |
| failCode | integer | Failure code |
| failDesc | string | Failure description |
Cancel Task
URL: http://localhost:40185/api/v1/browser/task/cancel
| Parameter | Required | Type | Description |
|---|---|---|---|
| ids | Yes | array[string] | Task IDs |
Retry Task
URL: http://localhost:40185/api/v1/browser/task/retry
| Parameter | Required | Type | Description |
|---|---|---|---|
| ids | Yes | array[string] | Task IDs |
Query Task Details
URL: http://localhost:40185/api/v1/browser/task/detail
| Parameter | Required | Type | Description |
|---|---|---|---|
| id | Yes | string | Task ID |
Task Flow Query
URL: http://localhost:40185/api/v1/browser/task/flow/list
| Parameter | Required | Type | Description |
|---|---|---|---|
| page | Yes | integer | Page number |
| pageSize | Yes | integer | Page size |
Create Custom Browser Task
URL: http://localhost:40185/api/v1/browser/task/custom
| Parameter | Required | Type | Description |
|---|---|---|---|
| name | No | string | Task name |
| remark | No | string | Remarks |
| scheduleAt | Yes | int | Scheduled time |
| eid | Yes | string | Browser environment ID |
| flowId | Yes | string | Task flow ID |
| paramMap | No | object | Task parameters |
json
{
"name": "test",
"remark": "test remark",
"scheduleAt": 1741846843,
"eid": "557536075321468390",
"flowId": "562316072435344885",
"paramMap": {
"Title": "video",
"Desc": "this is video",
"Video": ["https://material.geelark.cn/a.mp4"]
}
}Error Codes
| Code | Description |
|---|---|
| 43028 | User does not have permission for this group |
| 43027 | Environment not supported |
| 46002 | Package expired, member unavailable |
| 46003 | Package expired, environment unavailable |