Update a robot's cookies
开发环境
http://dev-cn.your-api-server.com
开发环境
http://dev-cn.your-api-server.com
PATCH
/robots/{robotId}/cookies
robots
请求示例请求示例
Go
Java
Objective-C
Shell
curl --location --request PATCH 'http://dev-cn.your-api-server.com/robots/c3689adb-50aa-44af-b265-a7e0d4e5846e/cookies' \
--header 'authorization: Bearer YOUR_SECRET_API_KEY' \
--header 'Content-Type: application/json' \
--data-raw '[
{
"name": "ACCOUNT_CHOOSER",
"value": 12341234,
"domain": ".example.com",
"expirationDate": 1723659417,
"path": "/products/",
"secure": true,
"httpOnly": true,
"hostOnly": true
}
]'
响应示例响应示例
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
}
]
}
请求参数
Path 参数
robotId
string
必需
示例值:
c3689adb-50aa-44af-b265-a7e0d4e5846e
Header 参数
authorization
string
必需
示例值:
Bearer YOUR_SECRET_API_KEY
Body 参数application/json
返回响应
修改于 2024-02-20 02:11:12