跳转到主要内容
PATCH
通过 proxyIds 选择 1–500 个活跃代理。note: "" 清空备注,replaceTags: [] 清空所有标签。addTags 和 removeTags 可同时用于不同的标签。replaceTags 不能与这两个字段同时使用。 若要从整个产品中移除标签,只能传入 product、scope: "product" 和非空的 removeTags。未提供任何修改字段或 ID 列表为空时返回 400。

授权

Authorization
string
header
必填

ProxyLayer API key. See the API Overview for key modes and scopes.

Scopes

rest:proxy:write

Access to proxy:write REST operations

请求体

application/json

Product, target, and at least one change.

product
enum<string>
必填
可用选项:
isp,
datacenter,
mobile
proxyIds
string[]
必填

Active proxy IDs from GET /api/v1/proxies.

Required array length: 1 - 500 elements
Minimum string length: 1
note
string

Replaces the note. Send an empty string to clear it.

Maximum string length: 20000
replaceTags
string[]

Replaces all tags. Send an empty array to clear them.

Maximum array length: 10
Required string length: 1 - 64
addTags
string[]

Appends tags up to the limit of 10 per proxy.

Required array length: 1 - 10 elements
Required string length: 1 - 64
removeTags
string[]

Removes tags by exact, case-sensitive match.

Required array length: 1 - 10 elements
Required string length: 1 - 64

响应

Count of matched proxies updated.

updated
integer
必填
必填范围: x >= 0