translationsRegister mutation
Creates or updates translations.
Required access
write_translations
access scope.
On this page
Interactive example
This is an example mutation query. Use the embedded interactive tool below to edit the query.
Hint: use Ctrl + Space for autocompleting fields.
Arguments
Argument | Description |
---|---|
resourceId
(
ID!
)
required
|
ID of a translatable resource. |
translations
(
[TranslationInput!]!
)
required
|
Specifies the input fields for a translation. |
TranslationInput fields
-
key (
String!
) RequiredThe key of the translation.
-
locale (
String!
) RequiredThe locale of the translation.
-
translatableContentDigest (
String!
) RequiredThe digest (hash) of the content being translated.
-
value (
String!
) RequiredThe value of the translation.
Return fields
-
translations (
[Translation!]
)The translations that were created or updated.
-
userErrors (
[TranslationUserError!]!
)List of errors that occurred executing the mutation.
Creates or updates translations.
Required access
write_translations
access scope.
On this page
Interactive example
This is an example mutation query. Use the embedded interactive tool below to edit the query.
Hint: use Ctrl + Space for autocompleting fields.
Arguments
Argument | Description |
---|---|
resourceId
(
ID!
)
required
|
ID of a translatable resource. |
translations
(
[TranslationInput!]!
)
required
|
Specifies the input fields for a translation. |
TranslationInput fields
-
key (
String!
) RequiredThe key of the translation.
-
locale (
String!
) RequiredThe locale of the translation.
-
translatableContentDigest (
String!
) RequiredThe digest (hash) of the content being translated.
-
value (
String!
) RequiredThe value of the translation.
Return fields
-
translations (
[Translation!]
)The translations that were created or updated.
-
userErrors (
[TranslationUserError!]!
)List of errors that occurred executing the mutation.
Creates or updates translations.
Required access
write_translations
access scope.
On this page
Interactive example
This is an example mutation query. Use the embedded interactive tool below to edit the query.
Hint: use Ctrl + Space for autocompleting fields.
Arguments
Argument | Description |
---|---|
resourceId
(
ID!
)
required
|
ID of a translatable resource. |
translations
(
[TranslationInput!]!
)
required
|
Specifies the input fields for a translation. |
TranslationInput fields
-
key (
String!
) RequiredThe key of the translation.
-
locale (
String!
) RequiredThe locale of the translation.
-
translatableContentDigest (
String!
) RequiredThe digest (hash) of the content being translated.
-
value (
String!
) RequiredThe value of the translation.
Return fields
-
translations (
[Translation!]
)The translations that were created or updated.
-
userErrors (
[TranslationUserError!]!
)List of errors that occurred executing the mutation.
Creates or updates translations.
Required access
write_translations
access scope.
On this page
Interactive example
This is an example mutation query. Use the embedded interactive tool below to edit the query.
Hint: use Ctrl + Space for autocompleting fields.
Arguments
Argument | Description |
---|---|
resourceId
(
ID!
)
required
|
ID of a translatable resource. |
translations
(
[TranslationInput!]!
)
required
|
Specifies the input fields for a translation. |
TranslationInput fields
-
key (
String!
) RequiredThe key of the translation.
-
locale (
String!
) RequiredThe locale of the translation.
-
translatableContentDigest (
String!
) RequiredThe digest (hash) of the content being translated.
-
value (
String!
) RequiredThe value of the translation.
Return fields
-
translations (
[Translation!]
)The translations that were created or updated.
-
userErrors (
[TranslationUserError!]!
)List of errors that occurred executing the mutation.
Creates or updates translations.
Required access
write_translations
access scope.
On this page
Interactive example
This is an example mutation query. Use the embedded interactive tool below to edit the query.
Hint: use Ctrl + Space for autocompleting fields.
Arguments
Argument | Description |
---|---|
resourceId
(
ID!
)
required
|
ID of a translatable resource. |
translations
(
[TranslationInput!]!
)
required
|
Specifies the input fields for a translation. |
TranslationInput fields
-
key (
String!
) RequiredThe key of the translation.
-
locale (
String!
) RequiredThe locale of the translation.
-
translatableContentDigest (
String!
) RequiredThe digest (hash) of the content being translated.
-
value (
String!
) RequiredThe value of the translation.
Return fields
-
translations (
[Translation!]
)The translations that were created or updated.
-
userErrors (
[TranslationUserError!]!
)List of errors that occurred executing the mutation.
Creates or updates translations.
Required access
write_translations
access scope.
On this page
Interactive example
This is an example mutation query. Use the embedded interactive tool below to edit the query.
Hint: use Ctrl + Space for autocompleting fields.
Arguments
Argument | Description |
---|---|
resourceId
(
ID!
)
required
|
ID of a translatable resource. |
translations
(
[TranslationInput!]!
)
required
|
Specifies the input fields for a translation. |
TranslationInput fields
-
key (
String!
) RequiredThe key of the translation.
-
locale (
String!
) RequiredThe locale of the translation.
-
translatableContentDigest (
String!
) RequiredThe digest (hash) of the content being translated.
-
value (
String!
) RequiredThe value of the translation.
Return fields
-
translations (
[Translation!]
)The translations that were created or updated.
-
userErrors (
[TranslationUserError!]!
)List of errors that occurred executing the mutation.
Creates or updates translations.
Required access
write_translations
access scope.
On this page
Interactive example
This is an example mutation query. Use the embedded interactive tool below to edit the query.
Hint: use Ctrl + Space for autocompleting fields.
Arguments
Argument | Description |
---|---|
resourceId
(
ID!
)
required
|
ID of a translatable resource. |
translations
(
[TranslationInput!]!
)
required
|
Specifies the input fields for a translation. |
TranslationInput fields
-
key (
String!
) RequiredThe key of the translation.
-
locale (
String!
) RequiredThe locale of the translation.
-
translatableContentDigest (
String!
) RequiredThe digest (hash) of the content being translated.
-
value (
String!
) RequiredThe value of the translation.
Return fields
-
translations (
[Translation!]
)The translations that were created or updated.
-
userErrors (
[TranslationUserError!]!
)List of errors that occurred executing the mutation.
Creates or updates translations.
Required access
write_translations
access scope.
On this page
Interactive example
This is an example mutation query. Use the embedded interactive tool below to edit the query.
Hint: use Ctrl + Space for autocompleting fields.
Arguments
Argument | Description |
---|---|
resourceId
(
ID!
)
required
|
ID of a translatable resource. |
translations
(
[TranslationInput!]!
)
required
|
Specifies the input fields for a translation. |
TranslationInput fields
-
key (
String!
) RequiredThe key of the translation.
-
locale (
String!
) RequiredThe locale of the translation.
-
translatableContentDigest (
String!
) RequiredThe digest (hash) of the content being translated.
-
value (
String!
) RequiredThe value of the translation.
Return fields
-
translations (
[Translation!]
)The translations that were created or updated.
-
userErrors (
[TranslationUserError!]!
)List of errors that occurred executing the mutation.
Creates or updates translations.
Required access
write_translations
access scope.
On this page
Interactive example
This is an example mutation query. Use the embedded interactive tool below to edit the query.
Hint: use Ctrl + Space for autocompleting fields.
Arguments
Argument | Description |
---|---|
resourceId
(
ID!
)
required
|
ID of a translatable resource. |
translations
(
[TranslationInput!]!
)
required
|
Specifies the input fields for a translation. |
TranslationInput fields
-
key (
String!
) RequiredThe key of the translation.
-
locale (
String!
) RequiredThe locale of the translation.
-
translatableContentDigest (
String!
) RequiredThe digest (hash) of the content being translated.
-
value (
String!
) RequiredThe value of the translation.
Return fields
-
translations (
[Translation!]
)The translations that were created or updated.
-
userErrors (
[TranslationUserError!]!
)List of errors that occurred executing the mutation.
Creates or updates translations.
Required access
write_translations
access scope.
On this page
Interactive example
This is an example mutation query. Use the embedded interactive tool below to edit the query.
Hint: use Ctrl + Space for autocompleting fields.
Arguments
Argument | Description |
---|---|
resourceId
(
ID!
)
required
|
ID of a translatable resource. |
translations
(
[TranslationInput!]!
)
required
|
Specifies the input fields for a translation. |
TranslationInput fields
-
key (
String!
) RequiredThe key of the translation.
-
locale (
String!
) RequiredThe locale of the translation.
-
translatableContentDigest (
String!
) RequiredThe digest (hash) of the content being translated.
-
value (
String!
) RequiredThe value of the translation.
Return fields
-
translations (
[Translation!]
)The translations that were created or updated.
-
userErrors (
[TranslationUserError!]!
)List of errors that occurred executing the mutation.