younifyd
Menu

Update Translation

Update a Translation

PATCH/translations/{id}

Use it in a workflow

  1. Add a step and choose the Directus connector.
  2. Pick the Update Translation action (under Translations).
  3. Fill in the fields below, then reference the result from later steps as {{updateTranslation.response.data}}.

Request

Path parameters

idstringrequired

Unique identifier of the Translation.

Query parameters

fieldsarray<string>

Control what fields are being returned in the object.

metastring

What metadata to return in the response.

Response

Returns 200 with an object. Read it in later steps with {{updateTranslation.response.data.<field>}}.

dataobject
idstring (uuid)

Primary key of the translations.

keystring

The translation key.

languagestring

The language of the translation.

stringstring

The translation value.

json
{
  "data": {
    "id": "sc4346aa4-81a8-4885-b3a8-f647e4f6f769",
    "key": "Test",
    "language": "en-US",
    "string": "Test"
  }
}

Need more? See the Directus guide for connection setup and behaviour shared by every action.

Update Translation — Directus — Documentation