Get collection translation
Fetch one collection translation.
Returns stored translated Collection fields for one locale, including whether the translation is out of date.
Path parameters
| Name | Type | Description |
|---|---|---|
id
required
|
uuid |
Collection id. |
locale
required
|
string |
Enabled non-default store locale. |
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Errors
-
400STORE_API_INVALID_COLLECTION_IDCollection id is not a valid UUID.
-
400TRANSLATION_LOCALE_REQUIREDlocale is required.
-
400TRANSLATION_LOCALE_NOT_ENABLEDLocale is not enabled for this store.
-
400TRANSLATION_DEFAULT_LOCALE_FORBIDDENTranslations cannot target the store's default locale.
-
400TRANSLATION_FIELD_NOT_TRANSLATABLEField is not translatable for collections.
-
400TRANSLATION_FIELDS_REQUIREDAt least one translated field is required.
-
400TRANSLATION_FIELD_VALUE_TOO_LONGA translated value exceeds its field limit.
-
400TRANSLATION_INVALID_RESOURCE_IDA Collection id is invalid.
-
400TRANSLATION_TOO_MANY_RESOURCESThe request exceeds the translation batch resource cap.
-
404TRANSLATION_RESOURCE_NOT_FOUNDCollection does not exist in this store.
-
409TRANSLATION_DUPLICATE_NAME_OR_SLUGTranslated name or slug conflicts with another collection.
Set collection translation
Set one collection translation.
Writes translated Collection fields for one locale. Empty values clear the matching field translation.
Path parameters
| Name | Type | Description |
|---|---|---|
id
required
|
uuid |
Collection id. |
locale
required
|
string |
Enabled non-default store locale. |
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Body parameters
| Name | Type | Description |
|---|---|---|
translations
required
|
object |
Field-keyed translation values. Allowed fields come from |
Errors
-
400STORE_API_INVALID_COLLECTION_IDCollection id is not a valid UUID.
-
400STORE_API_INVALID_REQUEST_BODYRequest body is not valid JSON.
-
400TRANSLATION_LOCALE_REQUIREDlocale is required.
-
400TRANSLATION_LOCALE_NOT_ENABLEDLocale is not enabled for this store.
-
400TRANSLATION_DEFAULT_LOCALE_FORBIDDENTranslations cannot target the store's default locale.
-
400TRANSLATION_FIELD_NOT_TRANSLATABLEField is not translatable for collections.
-
400TRANSLATION_FIELDS_REQUIREDAt least one translated field is required.
-
400TRANSLATION_FIELD_VALUE_TOO_LONGA translated value exceeds its field limit.
-
400TRANSLATION_INVALID_RESOURCE_IDA Collection id is invalid.
-
400TRANSLATION_TOO_MANY_RESOURCESThe request exceeds the translation batch resource cap.
-
404TRANSLATION_RESOURCE_NOT_FOUNDCollection does not exist in this store.
-
409TRANSLATION_DUPLICATE_NAME_OR_SLUGTranslated name or slug conflicts with another collection.
Batch get collection translations
Fetch collection translations in batch.
Returns translated Collection fields for multiple collection ids in one locale.
Path parameters
| Name | Type | Description |
|---|---|---|
locale
required
|
string |
Enabled non-default store locale. |
Query parameters
| Name | Type | Description |
|---|---|---|
ids
required
|
string |
Comma-separated collection ids. |
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Errors
-
400TRANSLATION_LOCALE_REQUIREDlocale is required.
-
400TRANSLATION_LOCALE_NOT_ENABLEDLocale is not enabled for this store.
-
400TRANSLATION_DEFAULT_LOCALE_FORBIDDENTranslations cannot target the store's default locale.
-
400TRANSLATION_FIELD_NOT_TRANSLATABLEField is not translatable for collections.
-
400TRANSLATION_FIELDS_REQUIREDAt least one translated field is required.
-
400TRANSLATION_FIELD_VALUE_TOO_LONGA translated value exceeds its field limit.
-
400TRANSLATION_INVALID_RESOURCE_IDA Collection id is invalid.
-
400TRANSLATION_TOO_MANY_RESOURCESThe request exceeds the translation batch resource cap.
-
404TRANSLATION_RESOURCE_NOT_FOUNDCollection does not exist in this store.
-
409TRANSLATION_DUPLICATE_NAME_OR_SLUGTranslated name or slug conflicts with another collection.
Batch set collection translations
Set collection translations in batch.
Writes translated Collection fields for multiple collection ids in one locale. Either every row is written or, if any row is invalid, none are.
Path parameters
| Name | Type | Description |
|---|---|---|
locale
required
|
string |
Enabled non-default store locale. |
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Body parameters
| Name | Type | Description |
|---|---|---|
translations
required
|
array<object> |
Rows with |
Errors
-
400STORE_API_INVALID_REQUEST_BODYRequest body is not valid JSON.
-
400STORE_API_INVALID_COLLECTION_IDOne collection id is not a valid UUID.
-
400TRANSLATION_LOCALE_REQUIREDlocale is required.
-
400TRANSLATION_LOCALE_NOT_ENABLEDLocale is not enabled for this store.
-
400TRANSLATION_DEFAULT_LOCALE_FORBIDDENTranslations cannot target the store's default locale.
-
400TRANSLATION_FIELD_NOT_TRANSLATABLEField is not translatable for collections.
-
400TRANSLATION_FIELDS_REQUIREDAt least one translated field is required.
-
400TRANSLATION_FIELD_VALUE_TOO_LONGA translated value exceeds its field limit.
-
400TRANSLATION_INVALID_RESOURCE_IDA Collection id is invalid.
-
400TRANSLATION_TOO_MANY_RESOURCESThe request exceeds the translation batch resource cap.
-
404TRANSLATION_RESOURCE_NOT_FOUNDCollection does not exist in this store.
-
409TRANSLATION_DUPLICATE_NAME_OR_SLUGTranslated name or slug conflicts with another collection.