Login | Sign Up
  • FA
  • EN

API Docs

DELETE /api/v1/admin/states/{state-id}

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


Permissions

PermissionDescription
states.view_allAccess states
states.deleteDelete state

Request Body Parameters

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

Response

204 No Content

No content is returned when the state is deleted successfully.


Error Responses

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