GET/ng-cms/media/{projectId}/{mediaId}

Get a media asset by ID

Параметры запроса

projectIdstring
Обязательный

The unique identifier of the project (bucket)

mediaIdstring
Обязательный

The unique identifier of the media asset

Ответы

200The requested media asset.

тип: CmsMediaAssetDto

idstringUnique identifier of the media asset
projectIdstringProject (bucket) this asset belongs to
fileNamestringOriginal filename as uploaded
titlestringHuman-readable title
descriptionstringOptional description of the asset
mimeTypestringMIME type of the file (e.g. image/jpeg)
sizeBytesnumberFile size in bytes
storageProviderstringStorage backend used (e.g. s3)
storageKeystringKey used to identify the file in storage
publicUrlstringPublicly accessible URL for the asset
metadataobjectAdditional key-value metadata attached to the asset
createdBynumberID of the user who uploaded the asset
createdAtstringISO 8601 timestamp of upload
updatedAtstringISO 8601 timestamp of last update, or null
updatedBynumberID of the user who last updated the asset
updatedByNamestringName of the user who last updated the asset
publishedAtstringISO 8601 timestamp of publication, or null
publishedBynumberID of the user who published the asset, or null
401Unauthorized. A valid bearer token is required.
404Not Found. No media asset exists with the given ID.
412Precondition Failed. The project's current plan does not allow access to this resource, or payment is required to proceed.
500Unexpected server error.

тип: ApiResponse<T>

successbooleanAlways false
errorsErrorDetail[]List of server-side errors
correlationIdstringUnique ID for tracing the error
messagestringError message
stackstringStack trace (non-production only)

Оставаясь на сайте, Вы даете свое согласие на использование файлов cookie