Create a new blacklisted ip range

Supported Formats

json

Errors

Code Description
404 Not Found: The requested resource could not be found
406 Not Acceptable: Accept or Content-Type headers must be application/json, text/csv or application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
400 Bad Request: body has wrong syntax or unable to handle request
401 Unauthorized: auth_token omitted or authentication failed
403 Forbidden: This action cannot be performed
422 Unprocessable Entity: body has wrong attributes

Examples

REQUEST
Authorization: Bearer <user jwt>
Content-Type: application/json
{
}

RESPONSE
Location: /api/v1/organizations/1/blacklisted_ip_ranges/28
201 (Created)
{
  "id": 28,
  "created_at": 1392405501,
  "updated_at": 1392405501,
  "organization_id": 1,
  "ip_range": "192.168.0.1/24",
  "name": "Test",
}
REQUEST
Authorization: Bearer <service jwt>
Content-Type: application/json
{
  "ip_range": "192.168.0.1/24"
}

RESPONSE
Location: /api/v1/organizations/1/blacklisted_ip_ranges/28
201 (Created)
{
  "id": 29,
  "organization_id": 1,
  "created_at": 1392405501,
  "updated_at": 1392405501,
  "ip_range": "192.168.0.1/24",
  "name": "Test",
}

Params

Param name Description
auth_token
optional

API token needed to authorize requests
This can appear as an attribute in the body of the request or the query parameters on the URL

Validations:

  • Must be a String

ip_range
optional

The ip range in dotted quad format

Validations:

  • Must be a String

name
optional

The name describing the IP address/range

Validations:

  • Must be a String