Skip to content

Remove a language ​

Last updated View as Markdown

Endpoint: https://api.youcan.shop/languages/{locale}

Method: DELETE

Required Scopes ​

  • delete-languages

Notes ​

  • Visitors no longer get the store in this language.
  • You cannot remove the default language. You get a 422 when you try.
  • You get a 404 for a language that was not added to the store.

Parameters ​

Param NameParam TypeDescriptionRequired
localestringThe locale of a language from the listing, for example frYes

Response ​

[200] Ok

json
{
  "status": 200,
  "detail": "language successfully removed",
  "meta": []
}