Skip to main content
PUT
Create or replace a language version of a resource's label, summary and blocks

Authorizations

Authorization
string
header
required

API key authentication. Use "Bearer <api_key>" or "Api-Key <api_key>".

Path Parameters

uuid
string<uuid>
required
Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
language
enum<string>
required

Language code of the version (same codes as users.locale). Writing a version in the resource's own default_language is rejected — update the resource itself instead.

Available options:
en,
sv,
da,
de,
es,
fi,
fr,
ko,
nb,
nl,
pl,
pt,
pt-BR,
zh-HANS,
zh-HANT

Body

application/json

Replace one language version of a resource. Omitting a field leaves it unchanged; null clears a translatable text field.

Replace one language version of a resource. Omitting a field leaves it unchanged; null clears a translatable text field.

label
string | null

Translated resource label — null clears it

Maximum string length: 500
summary
string | null

Translated resource summary — null clears it

Maximum string length: 10000
blocks
object[]

Translated blocks — replaces the whole set for this language: blocks not listed lose their version for this language

Maximum array length: 200

Response

200 - application/json

Default Response

language
enum<string>
required

Language code (BCP-47) — the same values users.locale accepts. Learners see content in their users.locale, falling back to the resource/certification default_language.

Available options:
en,
sv,
da,
de,
es,
fi,
fr,
ko,
nb,
nl,
pl,
pt,
pt-BR,
zh-HANS,
zh-HANT
label
string | null
required
summary
string | null
required
blocks
object[]
required