latestOpenAPI 3.0.32026-08-19299284712.8 KB

67d9f45bb99b

cube

This is a shortcut class that will include all 6 resourceful actions part of the DRF ViewSets:

  • list()
  • retrieve()
  • create()
  • update()
  • partial_update()
  • destroy()

If you do not want to expose all 6 of these in your ViewSet, then use the CubeAuthenticatedViewSet and add the appropriate mixins to it (see rest_framework.mixins). This will allow the api to behave appropriately and block requests to unprocessable endpoints. Furthermore, it will make the drf_spectacular documentation be generated more easily.

post/cube

Request body

messagestring
metadataobject
backgroundboolean
addonstring required

Response

messagestring
metadataobject
backgroundboolean
addonstring required