Login | Sign Up
  • FA
  • EN

API Docs

DELETE /api/v1/admin/countries/{country-id}

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


Permissions

PermissionDescription
countries.view_allAccess countries
countries.deleteDelete any country

Request Body Parameters

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

Response

204 No Content

No content is returned when the country is deleted successfully.


Error Responses

StatusDescriptionReference
400When country 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