Browse AI
  1. robots
Browse AI
  • system
    • Endpoint for checking the status of Browse AI infrastructure
      GET
  • internal
    • Retrieve list of teams under user account
      GET
  • robots
    • Retrieve list of robots under your account
      GET
    • Retrieve single robot by ID
      GET
    • Update a robot's cookies
      PATCH
  • tasks
    • Get all tasks by a robot
      GET
    • Run a robot
      POST
    • Retrieve a task
      GET
  • monitors
    • Retrieve a robot's monitors
      GET
    • Create a new monitor on a robot
      POST
    • Retrieve a robot's monitor
      GET
    • Update a robot's monitor
      PATCH
    • Delete a robot's monitor
      DELETE
  • bulk runs
    • Bulk run tasks
      POST
    • Retrieve a robot's bulk runs list
      GET
    • Retrieve a robot's bulk run
      GET
  • webhooks
    • Retrieve a robot's webhooks
      GET
    • Create a new webhook on a robot
      POST
    • Delete a robot's webhook
      DELETE
  1. robots

Update a robot's cookies

开发环境
http://dev-cn.your-api-server.com
开发环境
http://dev-cn.your-api-server.com
PATCH
/robots/{robotId}/cookies
Update a robot's cookies

请求参数

Path 参数

Header 参数

Body 参数application/json

示例

返回响应

🟢200A JSON object containing the updated monitor.
application/json
Body

🟠400A JSON containing error attributes. This will happen if any of the parameters are not valid.
🟠401The request is not authorized
🟠404The resource is not found
🔴500There was an error on the server
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --request PATCH \
  --url https://api.browse.ai/v2/robots/{robotId}/monitors/{monitorId} \
  --header 'Authorization: Bearer YOUR_SECRET_API_KEY' \
  --data '{"name":"Monitor products","inputParameters":{"originUrl":"https://www.espressozone.com/espresso-machines/semi-automatic-espresso-machines"},"schedule":"FREQ=HOURLY;INTERVAL=1;BYWEEKDAY=MO,TU,WE,TH,FR","notifyOnCapturedScreenshotChange":false,"notifyOnCapturedTextChange":true,"capturedScreenshotNotificationThreshold":16}'
响应示例响应示例
200 - 示例 1
{
    "statusCode": 200,
    "messageCode": "success",
    "cookies": [
        {
            "name": "ACCOUNT_CHOOSER",
            "value": 12341234,
            "domain": ".example.com",
            "expirationDate": 1723659417,
            "path": "/products/",
            "secure": true,
            "httpOnly": true,
            "hostOnly": true
        }
    ]
}
修改于 2024-02-20 02:11:12
上一页
Retrieve single robot by ID
下一页
Get all tasks by a robot
Built with