method
LocalAPI.BulkUnpublish
BulkUnpublish atomically returns every selected versioned document to draft.
Arguments
| Argument | Type | Description |
|---|---|---|
ctx | context.Context | The ctx value. |
collection | string | The collection value. |
ids | []string | The ids value. |
options | BulkOptions | The options value. |
Returns
The declared result.
([]store.Document, error)Full signature
func (local *LocalAPI) BulkUnpublish(
ctx context.Context,
collection string,
ids []string,
options BulkOptions,
) ([]store.Document, error)Related types
LocalAPIIn-process content operations that share the REST authorization and lifecycle pipeline.
BulkOptionsBulkOptions controls the actor and localization of an atomic batch or empty-trash operation. Bulk actions do not consume per-document revisions, population, draft status, or caller IDs.
DocumentA stored document with status and version metadata.