authoring-get-media-item
Retrieve a Sitecore media item by ID or path to get its GUID, MIME type, size, and URL. Use it after uploading media to obtain the ID required for image fields.
Instructions
Reads a media item over the Authoring and Management API, returning its identity, mime type, size and URL. Use it after authoring-upload-media to get the ID an image field value needs, or to check what is already in the media library. Supply exactly one of id or path.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | The media item's GUID. Supply this or path. | |
| path | No | The media item's full path, e.g. '/sitecore/media library/Project/MySite/hero'. Supply this or id. | |
| database | No | The database holding the media library. Defaults to master. | |
| language | No | The media item's language. |