Upload translation key screenshot
Changed onUploads translation key screenshot from image encoded in base64. It throws an error if translation key does not exist.
The uploaded screenshot replaces the existing screenshot if it exists.
key is a required field, and it cannot be null or empty. The endpoint throws an error if key is null or empty.
namespace is an optional field, and it can be null or empty. Null and empty values are ignored.
If namespace is not provided, then an empty namespace is used.
Max size of screenshot is 2MB for base64, otherwise, the endpoint throws an error.
Only PNG, JPG and JPEG formats are supported, otherwise, the endpoint may throw an error.
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.
Query parameters
Request body
Example request
{
"base64": "/9j/4AAQSkZJRgABAgAAZABkAAD/..."
}Response
OK
Changes
- breaking
the
request property's minLength was increased from0to1 - warning
deleted the
headerrequest parameterX-SimpleLocalize-Token - info
the endpoint scheme security
Project API Keywas added to the API - info
the endpoint scheme security
apiKeywas removed from the API - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status
- breaking
- info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status
- info