Comments & Suggestions
Create suggestion
Changed onCreates a new translation suggestion for a given key and language.
The Authorization header with a Personal Access Token is optional here — if the project has anonymous suggestions enabled for the given language, the suggestion is created without attributing it to any user.
post/api/v1/suggestions
Request
- Base URLhttps://api.simplelocalize.io
- Auth
- API key in header X-SimpleLocalize-Token
- or API key in header Authorization
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Headers
X-SimpleLocalize-Tokenstring required
Project API Key
Authorizationstring
Personal Access Token. Optional - omit to submit an anonymous suggestion (works only if anonymous suggestions are enabled for the project)
Request body
Example request
{
"namespace": "common",
"key": "welcome-message",
"language": "en",
"suggestedTranslation": "Welcome!",
"content": "This sounds more natural."
}Response
OK
Changes
- info
endpoint added
- info