method
RiduClient.updateUpload
Save file, image, and document edits in one revision-checked mutation.
Arguments
| Argument | Type | Description |
|---|---|---|
collection | Slug | The collection value. |
id | string | The id value. |
input | UpdateUploadInput< | The input value. |
options | MutationOptions< | The options value. |
Returns
The declared result.
Promise<OutputFor<Config, Slug>>Full signature (2 overloads)
RiduClient.updateUpload<
Slug extends Extract<UploadCollectionSlug<Config>, DraftCollectionSlug<Config>>,
>(
collection: Slug,
id: string,
input: UpdateUploadInput<DraftUpdateFor<Config, Slug>> & { publish?: false; },
options: UpdateOptions<LocaleFor<Config>, true> & { draft: true; },
): Promise<OutputFor<Config, Slug>>
RiduClient.updateUpload<Slug extends UploadCollectionSlug<Config>>(
collection: Slug,
id: string,
input: UpdateUploadInput<UpdateFor<Config, Slug>>,
options?: UpdateOptions<LocaleFor<Config>, CollectionDraftsFor<Config, Slug>>,
): Promise<OutputFor<Config, Slug>>Related types
UploadCollectionSlugCollection slugs with the generated upload capability.
DraftCollectionSlugCollection slugs with the generated drafts capability.
UpdateUploadInputOne atomic update to an upload's metadata, file, and image transformation.
DraftUpdateForGenerated input for staging an incomplete collection working draft.
UpdateOptionsUpdating a draft-capable resource may explicitly stage a working draft.
OutputForResolve a collection document output type.
UpdateForResolve a collection update input type.
MutationOptionsLocalized mutation options with optimistic concurrency.