Endpoint for creating new rules

Securityapi_key
Request
Request Body schema: application/json
name
string

the name or description of a rule

source_app_key
string

Which application is requesting availability data

account_type
integer

The user requesting data's account type in integer value, make a request to /accounttypes to retrieve the enum vaules

min_lat
string

Minimum Latitude to return data

max_lat
string

Maximum Latitude to return data

min_long
string

Minimum Longitude to return data

max_long
string

Maximum Longitude to return data

provider
string

The availability data provider

priority
number

The priority with which this rule should be applied (if conflicting with other rules)

Responses
200

Success

400

The Input from the user was malformed

401

Authorization value is missing for the header or the credentials provided are incorrect

403

The account specified does not have the required role(s) to access the resource

404

Attempting to access invalid routes

500

An error occurred on the server. The response body includes details of the specific error

post/rules
Request samples
application/json
{
  • "name": "El Paso Civic Smart",
  • "source_app_key": "ParkMobile",
  • "account_type": 5,
  • "min_lat": "0",
  • "max_lat": "100",
  • "min_long": "0",
  • "max_long": "100",
  • "provider": "CivicSmart",
  • "priority": 1
}
Response samples
application/json
{
  • "message": "Successfully Created Rule",
  • "new_rule_id": 1
}