List expected locations for a user
GET/api/web/v1/users/:userid/expectedlocations
Lists the expected locations for the specified user. Caller requires the USERRBASETTINGS:VIEW permission.
Request
Path Parameters
The UUID of the user whose expected locations will be returned.
Responses
- 200
- 400
- 401
- 403
- 404
- 409
Successful
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
expectedLocations
object[]
required
The list of expected locations stored for this user.
The city name--always returned in upper-case.
A two-character (alpha-2) ISO 3166-1 country code.
The UUID of this expected location.
The IPv4 Address.
The ISP name--always returned in upper-case.
Whether the IP provided is a private IP Address. The value is ignored when adding an ExpectedLocation. It is returned when getting ExpectedLocations if the location has an IP address defined
The maximum number of expected locations that can be stored for this user.
{
"expectedLocations": [
{
"city": "string",
"countryCode": "string",
"id": "string",
"ipAddress": "string",
"isp": "string",
"privateIpAddress": true
}
],
"maximumExpectedLocations": 0
}
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": [
{}
]
}