Hosting
Create a new environment
Changed onThe endpoint is used for creating a new environment in the project.
- You can create a custom environment with a unique key, name, and color.
- The created environment can be used for publishing translations.
- The environment key must be unique within the project and cannot be one of the reserved keys: _latest, _production.
post/api/v2/environments
Request
- Base URLhttps://api.simplelocalize.io
- AuthAPI key in header X-SimpleLocalize-Token
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"key": "staging",
"name": "Staging Environment",
"color": "ff5733"
}Response
OK
Changes
- info
endpoint added
- info