Login | Sign Up
  • FA
  • EN

API Docs

DELETE /api/v1/admin/cities/{city-id}

Delete a city. Optionally transfer attached data to another city.


Permissions

PermissionDescription
cities.view_allAccess cities
cities.deleteDelete any city

Request Body Parameters

NameTypeRequiredDescription
replacement_idintegerNoID of another city to transfer attached data (optional)

Response

204 No Content

No content is returned when the city is deleted successfully.


Error Responses

StatusDescriptionReference
400When city has data and replacement_id is not provided or is not valid. Number of attached items is returned in attached_data.
401UnauthorizedAuthentication error
403Forbidden (no permission)Permission error
404Not foundNot-found error

footer wave
logo

Dambel, the smart world of fitness and nutrition

LinkedinInstagramXYoutubeTelegramGitHub