Get policy translation
Fetch one policy translation.
Returns stored translated Policy fields for one locale, including whether the translation is out of date. Translation routes use the policy UUID returned by list/get, while policy CRUD routes use the fixed policy type.
Path parameters
| Name | Type | Description |
|---|---|---|
id
required
|
uuid |
Policy id. |
locale
required
|
string |
Enabled non-default store locale. |
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Errors
-
400TRANSLATION_INVALID_LOCALELocale is not enabled or is the default locale.
-
400TRANSLATION_INVALID_FIELDField is not translatable for Policies.
-
400STORE_API_INVALID_POLICY_IDThe policy translation id is not a valid UUID.
-
404TRANSLATION_RESOURCE_NOT_FOUNDThe policy does not exist in this store.
Set policy translation
Set one policy translation.
Writes translated Policy fields for one locale. Empty values clear the matching field translation. The {id} value is the policy UUID returned by list/get, not the policy type.
Path parameters
| Name | Type | Description |
|---|---|---|
id
required
|
uuid |
Policy 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
-
400TRANSLATION_INVALID_LOCALELocale is not enabled or is the default locale.
-
400TRANSLATION_INVALID_FIELDField is not translatable for Policies.
-
400STORE_API_INVALID_POLICY_IDThe policy translation id is not a valid UUID.
-
404TRANSLATION_RESOURCE_NOT_FOUNDThe policy does not exist in this store.
Batch get policy translations
Fetch policy translations in batch.
Returns translated Policy fields for multiple policy 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 Policy ids. |
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Errors
-
400TRANSLATION_INVALID_LOCALELocale is not enabled or is the default locale.
-
400TRANSLATION_INVALID_FIELDField is not translatable for Policies.
-
400STORE_API_INVALID_POLICY_IDThe policy translation id is not a valid UUID.
-
404TRANSLATION_RESOURCE_NOT_FOUNDThe policy does not exist in this store.
Batch set policy translations
Set policy translations in batch.
Writes translated Policy fields for multiple policy 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
-
400TRANSLATION_INVALID_LOCALELocale is not enabled or is the default locale.
-
400TRANSLATION_INVALID_FIELDField is not translatable for Policies.
-
400STORE_API_INVALID_POLICY_IDThe policy translation id is not a valid UUID.
-
404TRANSLATION_RESOURCE_NOT_FOUNDThe policy does not exist in this store.