Comments & Suggestions

Create suggestion

Changed on

Creates 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

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

namespacestring

Namespace of the translation key

keystring required

Translation key

languagestring required

Language key the suggestion is for

suggestedTranslationstring required

Suggested translation text

contentstring required

Comment explaining the suggestion

Example request

{
  "namespace": "common",
  "key": "welcome-message",
  "language": "en",
  "suggestedTranslation": "Welcome!",
  "content": "This sounds more natural."
}

Response

OK

Changes