Examples

POST /api/smart_proxies
{
  "smart_proxy": {
    "name": "master02",
    "url": ""
  }
}
422
{
  "error": {
    "id": null,
    "errors": {
      "url": [
        "can't be blank",
        "URL must be valid and schema must be one of http and https"
      ]
    },
    "full_messages": [
      "Url can't be blank",
      "Url URL must be valid and schema must be one of http and https"
    ]
  }
}

Params

Param name Description
location_id
optional

Scope by locations

Validations:

  • Must be a Integer

organization_id
optional

Scope by organizations

Validations:

  • Must be a Integer

smart_proxy
required

Validations:

  • Must be a Hash

smart_proxy[name]
required

Validations:

  • Must be a String

smart_proxy[url]
required

Validations:

  • Must be a String

smart_proxy[location_ids]
optional , nil allowed

REPLACE locations with given ids

Validations:

  • Must be an array of any type

smart_proxy[organization_ids]
optional , nil allowed

REPLACE organizations with given ids.

Validations:

  • Must be an array of any type