Translation keys

Upload translation key screenshot

Changed on

Uploads 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.

post/api/v1/translation-keys/screenshots

Request

Query parameters

keystring required
namespacestring

Request body

base64string required

Example request

{
  "base64": "/9j/4AAQSkZJRgABAgAAZABkAAD/..."
}

Response

OK

Changes

    • breaking

      the request property's minLength was increased from 0 to 1

    • warning

      deleted the header request parameter X-SimpleLocalize-Token

    • info

      the endpoint scheme security Project API Key was added to the API

    • info

      the endpoint scheme security apiKey was 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

    • 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