Scenes

POST /scenes/:uid/versions

Endpoint

POST /api/v2/scenes/:scene_uid/versions

Parameters

Name Description type
scene_uid required Scene uid string
scene_version[scenegraph_key] required Direct upload file key string
scene_version[thumbnail_key] Direct upload thumbnail key string
scene_version[parent_version_number] Parent version number integer

Request

Route

POST /api/v2/scenes/bybZtohV/versions

Headers

Accept: application/json
Content-Type: application/json
Access-Token: 5f76b86e106a503c82e1dd75ad54b74d525212b28854d8903014c514b5dfbd59$$fDSPCIdpfnsIs31bDyIihwEBaxB1r7oMwOx1u2d1gSXTXftQxMJ6LMU6sA==--46qQVASZcXIRHaAQ--QrMWWHfy+DvSt5QUgDM3XQ==
Api-Key: gwMFrQjo1y2U1vhS

Body

{
  "scene_version": {
    "scenegraph_key": "d62WJxydUV5nWjgrxUtjj3VZ",
    "thumbnail_key": "sP1D2GwkQRjDYdTo4kKw7KYN",
    "parent_version_number": 1
  }
}

Response

Status

201

Headers

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

Body

{
  "scene_version": {
    "created_at": "2019-08-05T22:48:36.619Z",
    "version_number": 3,
    "parent_version_number": 1,
    "uid": "zmCjP9qK",
    "scene_uid": "bybZtohV",
    "scenegraph_url": "http://localhost:3002/rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBc2NGIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--feddb14aadf171fd98299311940fab14302aeea0/test.json",
    "thumbnail_url": "http://localhost:3002/rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBc1lGIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--b05d22ab4f3a667fd03f386f53396e9afc9ba523/test.json"
  },
  "success": true
}