Keys

Multi-update

Updates one or more keys in the project. Requires Manage keys admin right.

Ad hoc documents projects (paged_documents) only allow updating <code>tags</code> (with <code>merge_tags</code>), <code>description</code>, <code>is_hidden</code>, <code>char_limit</code> and <code>custom_attributes</code> per key; any other property is rejected for that key in the response <code>errors</code> array (the request still returns <code>200</code>).

Requires <code>write_keys</code> OAuth access scope.

put/projects/{project_id}/keys

Request

  • Base URL
    https://api.lokalise.com/api2
  • URL
    https://api.lokalise.com/api2/projects/{project_id}/keys
  • Auth
    API key in header X-Api-Token

Path parameters

project_idstring required

A unique project identifier

Request body

use_automationsboolean

Whether to run automations on the updated key translations.

Example request

{
  "keys": [
    {
      "translations": [
        {
          "translation": "single-value"
        }
      ]
    }
  ]
}

Response

OK

project_idstring

Changes

No recorded changes to this operation across all 2 revisions of this API.