POST api/v1/Media/{id}/Rename?newName={newName}

Rename a Media

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

newName

string

Required

Body Parameters

None.

Response Information

Resource Description

ReadMediaDto
NameDescriptionTypeAdditional information
Id

The ID of the media

integer

None.

Name

The name of the media

string

String length: inclusive between 0 and 255

ContentType

The content type of the media

string

String length: inclusive between 0 and 50

SizeInBytes

The media's size in bytes

integer

None.

PublicUrl

The media's public URL

string

String length: inclusive between 0 and 500

ThumbnailUrl

The media's Thumbnail URL

string

String length: inclusive between 0 and 500

LastModified

The Datetimeoffset when the Media was last modified

date

None.

Response Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Name": "sample string 2",
  "ContentType": "sample string 3",
  "SizeInBytes": 4,
  "PublicUrl": "sample string 5",
  "ThumbnailUrl": "sample string 6",
  "LastModified": "2024-03-29T06:37:09.9537727+00:00"
}