Przykłady

POST /api/http_proxies
{
  "http_proxy": {
    "name": "http_proxy_is_smart",
    "url": "http://what????:5000"
  }
}
201
{
  "id": 1,
  "name": "http_proxy_is_smart",
  "url": "http://what????:5000",
  "username": null,
  "password": null
}

Parametry

Nazwa parametru Opis
location_id
opcjonalny

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
opcjonalny

Set the current organization context for the request

Validations:

  • Must be a Integer

http_proxy
wymagany

Validations:

  • Must be a Hash

http_proxy[name]
wymagany

The HTTP Proxy name

Validations:

  • Must be a String

http_proxy[url]
wymagany

URL of the HTTP Proxy

Validations:

  • Must be a String

http_proxy[username]
opcjonalny , nil dopuszczalny

Username used to authenticate with the HTTP Proxy

Validations:

  • Must be a String

http_proxy[password]
opcjonalny , nil dopuszczalny

Password used to authenticate with the HTTP Proxy

Validations:

  • Must be a String

http_proxy[location_ids]
opcjonalny , nil dopuszczalny

ZMIEŃ lokalizacje o podanym id

Validations:

  • Must be an array of any type

http_proxy[organization_ids]
opcjonalny , nil dopuszczalny

ZMIEŃ organizacje o podanym id

Validations:

  • Must be an array of any type