Skip to main content
Version: Next

Delete location

This method is intended to delete a location object

Request parameters

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

Headers

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

Path

ParameterTypeConstraintsDescriptionExample
idinteger> 0, requiredLocation ID2

Response parameters

Examples

204 OK

Location object deleted

400 Bad Request

Invalid path parameters specified

{
"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 a project participant linked to the project can delete the location object

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

Location object with the specified ID not found

{
"detail": "location not found"
}