Media Assets

Create media asset

Changed on

Creates a new media asset associated with a step

post/api/v1/media-assets

Request

  • Base URL: http://localhost:8080
  • URL: http://localhost:8080/api/v1/media-assets
  • Auth: none declared

Request body

alt_textstring nullable
byte_sizeinteger nullable
heightinteger nullable
mime_typestring nullable
step_idstring uuid required
storage_pathstring required
thumbnailstring nullable
widthinteger nullable

Example request

{
  "step_id": "248df4b7-aa70-47b8-a036-33ac447e668d"
}

Response

Created

Example response

{
  "media_asset": {
    "id": "248df4b7-aa70-47b8-a036-33ac447e668d",
    "step_id": "248df4b7-aa70-47b8-a036-33ac447e668d"
  }
}

Changes