method
LocalAPI.RestoreGlobal
RestoreGlobal restores a retained global revision.
Arguments
| Argument | Type | Description |
|---|---|---|
ctx | context.Context | The ctx value. |
slug | string | The slug value. |
revision | int | The revision value. |
options | MutationOptions | The options value. |
Returns
The declared result.
(store.Document, error)Full signature
func (local *LocalAPI) RestoreGlobal(
ctx context.Context,
slug string,
revision int,
options MutationOptions,
) (store.Document, error)Related types
LocalAPIIn-process content operations that share the REST authorization and lifecycle pipeline.
MutationOptionsAuthorization, optimistic concurrency, response population, create status, and locale controls for one write.
DocumentA stored document with status and version metadata.