Examples

POST /api/smart_proxies
{
  "smart_proxy": {
    "name": "",
    "url": "http://server:8443"
  }
}
422
{
  "error": {
    "id": null,
    "errors": {
      "name": [
        "can't be blank"
      ]
    },
    "full_messages": [
      "Name can't be blank"
    ]
  }
}

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