Create IP location
POST/api/web/v1/iplocations
Gets IP location information for an IP address. The IP location can be used to create an ExpectedLocation. Caller requires the USERRBASETTINGS:ADD permission.
Request
- application/json
Body
required
The city name--always returned in upper-case.
A two-character (alpha-2) ISO 3166-1 country code.
The IPv4 Address.
The ISP name--always returned in upper-case.
The latitude.
The longitude.
Whether the IP provided is a private IP Address. The value is only available when resolving an IP address to an IpLocation.
Responses
- 200
- 400
- 401
- 403
- 404
- 409
Successful
- application/json
- Schema
- Example (from schema)
Schema
The city name--always returned in upper-case.
A two-character (alpha-2) ISO 3166-1 country code.
The IPv4 Address.
The ISP name--always returned in upper-case.
The latitude.
The longitude.
Whether the IP provided is a private IP Address. The value is only available when resolving an IP address to an IpLocation.
{
"cityName": "string",
"countryCode": "string",
"ipAddress": "string",
"isp": "string",
"latitude": 0,
"longitude": 0,
"privateIpAddress": true
}
Bad Request
- application/json
- Schema
- Example (from schema)
Schema
Error Codes specific to cause of failure.
Additional Error Message describing the error.
Optional additional error information.
{
"errorCode": "invalid_user_response",
"errorMessage": "Application id cannot be null",
"parameters": [
{}
]
}
Access denied
- application/json
- Schema
- Example (from schema)
Schema
Error Codes specific to cause of failure.
Additional Error Message describing the error.
Optional additional error information.
{
"errorCode": "invalid_user_response",
"errorMessage": "Application id cannot be null",
"parameters": [
{}
]
}
Forbidden
- application/json
- Schema
- Example (from schema)
Schema
Error Codes specific to cause of failure.
Additional Error Message describing the error.
Optional additional error information.
{
"errorCode": "invalid_user_response",
"errorMessage": "Application id cannot be null",
"parameters": [
{}
]
}
Not Found
- application/json
- Schema
- Example (from schema)
Schema
Error Codes specific to cause of failure.
Additional Error Message describing the error.
Optional additional error information.
{
"errorCode": "invalid_user_response",
"errorMessage": "Application id cannot be null",
"parameters": [
{}
]
}
Conflict
- application/json
- Schema
- Example (from schema)
Schema
Error Codes specific to cause of failure.
Additional Error Message describing the error.
Optional additional error information.
{
"errorCode": "invalid_user_response",
"errorMessage": "Application id cannot be null",
"parameters": [
{}
]
}