Skip to main content
Version: v1

List of locations

This method is intended to view the list of location objects

Request parameters

GET /api/clients/v1/locations/{id}/

Headers

  • Content-Type: application/json
  • Authorization: Bearer $access_token

Query

ParameterTypeConstraintsDescriptionExample
limitinteger> 0Number of objects in the response50
offsetinteger> 0Offset relative to the start of the list0
project_idinteger> 0Project ID. Required1
domain_idinteger> 0Domain ID. Required1

Response parameters

JSON body

ParameterTypeDescription
countintegerTotal number of locations
nextstringLink to the next page
previousstringLink to the previous page
resultsobject[]List of locations

Examples

400 Bad Request

Invalid path parameters specified

{
"project_id": [
"A valid integer is required."
],
"domain_id": [
"A valid integer is required."
]

}
401 Unauthorized

Authentication credentials are missing or invalid

{
"detail": "Given token not valid for any token type",
"code": "token_not_valid",
"messages": [
{
"token_class": "AccessToken",
"token_type": "access",
"message": "Token is invalid or expired"
}
]
}
403 Forbidden

Only project participants can view this location object

{
"detail": "Only project participants can view this location"
}
404 Not Found

Location with this ID not found

{
"detail": "Not found"
}