Uploads

Replaces the step's media asset with the uploaded file and queues the old file for deletion

post/api/v1/uploads/replace

Request

  • Base URL: http://localhost:8080
  • URL: http://localhost:8080/api/v1/uploads/replace
  • Auth: none declared

Request body

file_sizeinteger nullable
heightinteger nullable
mime_typestring nullable
step_idstring required
storage_pathstring required
thumbnailstring nullable
widthinteger nullable

Response

OK

storage_pathstring required
urlstring required

Example response

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

Changes