Перейти к основному содержанию
PATCH
Выберите от 1 до 500 активных прокси через proxyIds. Поле note: "" очищает заметку, а replaceTags: [] — весь список тегов. Заметку можно менять вместе с тегами. Для замены используйте replaceTags, для точечной правки — addTags и removeTags с разными тегами. Для удаления тегов у всех активных прокси продукта передайте scope: "product" и непустой removeTags. В этом режиме допустимы только product, scope и 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