SceneAsset

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/errY42HH/assets

Headers

Accept: application/json
Content-Type: application/json
Access-Token: 3103fb68a3d613b6e219cf14c18a5011283aee67bb2052a453d509545cbddb4f$$l3pu6uS+W3eIDMOC+b9t5GXrQpxTB9rlfdMxpa9EXUBWS6GD2qaer/SVxg==--ClzE2kyXdhFO6/ss--1AX719pgOcc1RrhVR59/rg==
Api-Key: 9VQf19NnSh1KmxVX

Body

{
  "scene_asset": {
    "asset_key": "Nq6fANYDfXAB9hCJaEamFQkp"
  }
}

Response

Status

201

Headers

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

Body

{
  "scene_asset": {
    "created_at": "2020-06-01T21:44:47.724Z",
    "updated_at": "2020-06-01T21:44:47.724Z",
    "uid": "MoZFoi7P",
    "scene_uid": "errY42HH",
    "asset_url": "http://localhost:3002/rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBcWNCIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--c590d79276dcc3b5af4757d26a22ab46b2c92356/test.json"
  },
  "success": true
}