Skip to main content

core.medplumclient.createmedia

Home > @medplum/core > MedplumClient > createMedia

MedplumClient.createMedia() method

Creates a FHIR Media resource with the provided data content.

Signature:

createMedia(createMediaOptions: CreateMediaOptions, requestOptions?: MedplumRequestOptions): Promise<Media>;

Parameters

Parameter

Type

Description

createMediaOptions

CreateMediaOptions

The media creation options. See CreateMediaOptions for full details.

requestOptions

MedplumRequestOptions

(Optional) Optional fetch options.

Returns:

Promise<Media>

The new media resource.