Scenes

POST /scenes/:uid/assets

Endpoint

POST /api/v2/scenes/:uid/assets

Parameters

Name Description type
uid required Scene uid string
scene_asset[asset_key] required Direct upload file key string

Request

Route

POST /api/v2/scenes/C29JsjDu/assets

Headers

Accept: application/json
Content-Type: application/json
Access-Token: 4ee6bd88bf61fe217dfcee8a13a9d0c1884489a6affdc66059e486688a85c647$$ZkcGyzPbRxFYMq75ZcBmkn1+KraYx5z3eSY3JjyKwiLASSU/orl2HTlh9Q==--lfwmIAxbrJ33Wz1s--ZsnrhmP61AFBrWDi0rlnJw==
Api-Key: n42uQu1vkzK6fxbR

Body

{
  "scene_asset": {
    "asset_key": "oNuGfZ1CoKJCrNQPvxp4orvR"
  }
}

Response

Status

201

Headers

Content-Type: application/json; charset=utf-8

Body

{
  "scene_asset": {
    "created_at": "2020-06-01T21:44:51.173Z",
    "updated_at": "2020-06-01T21:44:51.173Z",
    "uid": "b2hzUBiD",
    "scene_uid": "C29JsjDu",
    "asset_url": "http://localhost:3002/rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBdDRCIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--108652e0df7c0268300b350253c0bb6df797982f/test.json"
  },
  "success": true
}