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 | The media creation options. See | |
requestOptions | (Optional) Optional fetch options. |
Returns:
Promise<Media>
The new media resource.