method
LocalAPI.CopyLocale
CopyLocale preserves the exact authenticated collection identity for both the source read and destination mutation lifecycle.
Arguments
| Argument | Type | Description |
|---|---|---|
ctx | context.Context | The ctx value. |
collection | string | The collection value. |
id | string | The id value. |
source | schema.LocaleCode | The source value. |
target | schema.LocaleCode | The target value. |
options | MutationOptions | The options value. |
Returns
The declared result.
(store.Document, error)Full signature
func (local *LocalAPI) CopyLocale(
ctx context.Context,
collection,
id string,
source,
target schema.LocaleCode,
options MutationOptions,
) (store.Document, error)Related types
LocalAPIIn-process content operations that share the REST authorization and lifecycle pipeline.
LocaleCodeA validated locale identity used by operations, manifests, and storage.
MutationOptionsAuthorization, optimistic concurrency, response population, create status, and locale controls for one write.
DocumentA stored document with status and version metadata.