method
RiduClient.uploadFromURL
Ask the server to ingest a remote URL with optional typed metadata.
Arguments
| Argument | Type | Description |
|---|---|---|
collection | Slug | The collection value. |
url | string | The url value. |
options | (UploadOptions< | The options value. |
Returns
The declared result.
Promise<OutputFor<Config, Slug>>Full signature (2 overloads)
RiduClient.uploadFromURL<
Slug extends Extract<UploadCollectionSlug<Config>, DraftCollectionSlug<Config>>,
>(
collection: Slug,
url: string,
options?: UploadOptions<
DraftCreateFor<Config, Slug>,
LocaleFor<Config>,
true,
> & {
draft?: true
},
): Promise<OutputFor<Config, Slug>>
RiduClient.uploadFromURL<Slug extends UploadCollectionSlug<Config>>(
collection: Slug,
url: string,
...args: CompleteUploadArgs<
CreateFor<Config, Slug>,
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.
UploadOptionsMetadata and locale options accompanying an upload.
DraftCreateForGenerated input for creating an incomplete draft-capable document.
OutputForResolve a collection document output type.
CreateForResolve a collection create input type.