---
title: Create viewpoint
slug: topic-api/create-viewpoint
docTags: 
createdAt: 2024-06-10T16:49:07.009Z
---

{
  "id": "Ca0i-xTSIQL4oEwulMmzg",
  "type": "api-oas-v2",
  "data": {
    "method": "POST",
    "url": "https://api.catenda.com/opencde/bcf/3.0/projects/{topic-board-id}/topics/{topic-id}/viewpoints",
    "servers": [
      {
        "url": "https://api.catenda.com/opencde/bcf/3.0/projects/{topic-board-id}/topics/{topic-id}/viewpoints"
      }
    ],
    "name": "Create viewpoint",
    "description": "Add a new topic viewpoint.\n\nA viewpoint doesn't have to contain any camera data and can be used to add an arbitrary image to a topic. A viewpoint can then be referenced from a topic comment by its guid allowing comments with images.\n",
    "contentType": "application/json",
    "request": {
      "pathParameters": [
        {
          "kind": "required",
          "name": "topic-board-id",
          "type": "string",
          "example": "e18a2d10-1595-4e52-a941-22d43bf8d7ad",
          "description": "Id of the topic board"
        },
        {
          "kind": "required",
          "name": "topic-id",
          "type": "string",
          "example": "18d0273d-e15c-4924-97b3-6f47b233eebe",
          "description": "Topic id"
        }
      ],
      "headerParameters": [],
      "queryParameters": [
        {
          "kind": "optional",
          "name": "includeAuthorization",
          "type": "boolean",
          "description": "Include authorization field in response"
        }
      ],
      "bodyDataParameters": [
        {
          "kind": "optional",
          "name": "body",
          "type": "object",
          "description": "",
          "schema": [
            {
              "name": "guid",
              "kind": "optional",
              "type": "string",
              "description": "Id of the viewpoint",
              "example": "52959166-dbd2-44eb-81bb-74f955f30e0f"
            },
            {
              "name": "bimsync_models",
              "kind": "optional",
              "type": "array",
              "description": "List of models",
              "example": "",
              "itemType": "object",
              "customType": "object[]",
              "schema": [
                {
                  "name": "modelRef",
                  "kind": "optional",
                  "type": "string",
                  "description": "Id of the model",
                  "example": "11a9bb2984ee4a999875c4cd9560f319"
                },
                {
                  "name": "revisionRef",
                  "kind": "optional",
                  "type": "string",
                  "description": "Id of the model revision",
                  "example": "eed6ae36-5fe0-4f1f-89da-fba8efcf8b97"
                }
              ]
            },
            {
              "name": "orthogonal_camera",
              "kind": "optional",
              "type": "object",
              "description": "Details of orthogonal camera",
              "example": "",
              "schema": [
                {
                  "name": "camera_view_point",
                  "kind": "required",
                  "type": "object",
                  "description": "Location of the camera",
                  "example": "",
                  "schema": [
                    {
                      "name": "x",
                      "kind": "optional",
                      "type": "number",
                      "description": "X coordinate of camera location",
                      "example": 100
                    },
                    {
                      "name": "y",
                      "kind": "optional",
                      "type": "number",
                      "description": "Y coordinate of camera location",
                      "example": 100
                    },
                    {
                      "name": "z",
                      "kind": "optional",
                      "type": "number",
                      "description": "Z coordinate of camera location",
                      "example": 100
                    }
                  ]
                },
                {
                  "name": "camera_direction",
                  "kind": "required",
                  "type": "object",
                  "description": "Direction of the camera",
                  "example": "",
                  "schema": [
                    {
                      "name": "x",
                      "kind": "optional",
                      "type": "number",
                      "description": "X coordinate of camera direction",
                      "example": 100
                    },
                    {
                      "name": "y",
                      "kind": "optional",
                      "type": "number",
                      "description": "Y coordinate of camera direction",
                      "example": 100
                    },
                    {
                      "name": "z",
                      "kind": "optional",
                      "type": "number",
                      "description": "Z coordinate of camera direction",
                      "example": 100
                    }
                  ]
                },
                {
                  "name": "camera_up_vector",
                  "kind": "required",
                  "type": "object",
                  "description": "Normalized vector describing the camera orientation",
                  "example": "",
                  "schema": [
                    {
                      "name": "x",
                      "kind": "optional",
                      "type": "number",
                      "description": "X coordinate of vector",
                      "example": 0
                    },
                    {
                      "name": "y",
                      "kind": "optional",
                      "type": "number",
                      "description": "Y coordinate of vector",
                      "example": 0
                    },
                    {
                      "name": "z",
                      "kind": "optional",
                      "type": "number",
                      "description": "Z coordinate of vector",
                      "example": 1
                    }
                  ]
                },
                {
                  "name": "view_to_world_scale",
                  "kind": "required",
                  "type": "number",
                  "description": "The scale factor between the camera and the scene",
                  "example": 14
                },
                {
                  "name": "aspect_ratio",
                  "kind": "required",
                  "type": "number",
                  "description": "Aspect ratio of the scene",
                  "example": 1
                }
              ]
            },
            {
              "name": "perspective_camera",
              "kind": "optional",
              "type": "object",
              "description": "Details of perspective camera",
              "example": "",
              "schema": [
                {
                  "name": "camera_view_point",
                  "kind": "required",
                  "type": "object",
                  "description": "Location of the camera",
                  "example": "",
                  "schema": [
                    {
                      "name": "x",
                      "kind": "optional",
                      "type": "number",
                      "description": "X coordinate of camera location",
                      "example": 100
                    },
                    {
                      "name": "y",
                      "kind": "optional",
                      "type": "number",
                      "description": "Y coordinate of camera location",
                      "example": 100
                    },
                    {
                      "name": "z",
                      "kind": "optional",
                      "type": "number",
                      "description": "Z coordinate of camera location",
                      "example": 100
                    }
                  ]
                },
                {
                  "name": "camera_direction",
                  "kind": "required",
                  "type": "object",
                  "description": "Direction of the camera",
                  "example": "",
                  "schema": [
                    {
                      "name": "x",
                      "kind": "optional",
                      "type": "number",
                      "description": "X coordinate of camera direction",
                      "example": 100
                    },
                    {
                      "name": "y",
                      "kind": "optional",
                      "type": "number",
                      "description": "Y coordinate of camera direction",
                      "example": 100
                    },
                    {
                      "name": "z",
                      "kind": "optional",
                      "type": "number",
                      "description": "Z coordinate of camera direction",
                      "example": 100
                    }
                  ]
                },
                {
                  "name": "camera_up_vector",
                  "kind": "required",
                  "type": "object",
                  "description": "Normalized vector describing the camera orientation",
                  "example": "",
                  "schema": [
                    {
                      "name": "x",
                      "kind": "optional",
                      "type": "number",
                      "description": "X coordinate of vector",
                      "example": 0
                    },
                    {
                      "name": "y",
                      "kind": "optional",
                      "type": "number",
                      "description": "Y coordinate of vector",
                      "example": 0
                    },
                    {
                      "name": "z",
                      "kind": "optional",
                      "type": "number",
                      "description": "Z coordinate of vector",
                      "example": 1
                    }
                  ]
                },
                {
                  "name": "field_of_view",
                  "kind": "required",
                  "type": "number",
                  "description": "Field of view of the camera in degrees",
                  "example": 60
                },
                {
                  "name": "aspect_ratio",
                  "kind": "required",
                  "type": "number",
                  "description": "Aspect ratio of the scene",
                  "example": 1
                }
              ]
            },
            {
              "name": "lines",
              "kind": "optional",
              "type": "array",
              "description": "List of graphical lines",
              "example": "",
              "itemType": "object",
              "customType": "object[]",
              "schema": [
                {
                  "name": "start_point",
                  "kind": "required",
                  "type": "object",
                  "description": "Start point of the line",
                  "example": "",
                  "schema": [
                    {
                      "name": "x",
                      "kind": "optional",
                      "type": "number",
                      "description": "X coordinate of start point",
                      "example": 100
                    },
                    {
                      "name": "y",
                      "kind": "optional",
                      "type": "number",
                      "description": "Y coordinate of start point",
                      "example": 100
                    },
                    {
                      "name": "z",
                      "kind": "optional",
                      "type": "number",
                      "description": "Z coordinate of start point",
                      "example": 100
                    }
                  ]
                },
                {
                  "name": "end_point",
                  "kind": "required",
                  "type": "object",
                  "description": "End point of the line",
                  "example": "",
                  "schema": [
                    {
                      "name": "x",
                      "kind": "optional",
                      "type": "number",
                      "description": "X coordinate of end point",
                      "example": 200
                    },
                    {
                      "name": "y",
                      "kind": "optional",
                      "type": "number",
                      "description": "Y coordinate of end point",
                      "example": 200
                    },
                    {
                      "name": "z",
                      "kind": "optional",
                      "type": "number",
                      "description": "Z coordinate of end point",
                      "example": 200
                    }
                  ]
                }
              ]
            },
            {
              "name": "clipping_planes",
              "kind": "optional",
              "type": "array",
              "description": "List of clipping planes",
              "example": "",
              "itemType": "object",
              "customType": "object[]",
              "schema": [
                {
                  "name": "location",
                  "kind": "required",
                  "type": "object",
                  "description": "Location of the camera",
                  "example": "",
                  "schema": [
                    {
                      "name": "x",
                      "kind": "optional",
                      "type": "number",
                      "description": "X coordinate of location",
                      "example": 100
                    },
                    {
                      "name": "y",
                      "kind": "optional",
                      "type": "number",
                      "description": "Y coordinate of location",
                      "example": 100
                    },
                    {
                      "name": "z",
                      "kind": "optional",
                      "type": "number",
                      "description": "Z coordinate of location",
                      "example": 100
                    }
                  ]
                },
                {
                  "name": "direction",
                  "kind": "required",
                  "type": "object",
                  "description": "Direction of the camera",
                  "example": "",
                  "schema": [
                    {
                      "name": "x",
                      "kind": "optional",
                      "type": "number",
                      "description": "X coordinate of direction",
                      "example": 0
                    },
                    {
                      "name": "y",
                      "kind": "optional",
                      "type": "number",
                      "description": "Y coordinate of direction",
                      "example": 0
                    },
                    {
                      "name": "z",
                      "kind": "optional",
                      "type": "number",
                      "description": "Z coordinate of direction",
                      "example": 1
                    }
                  ]
                }
              ]
            },
            {
              "name": "bitmaps",
              "kind": "optional",
              "type": "array",
              "description": "List of embedded images",
              "example": "",
              "itemType": "object",
              "customType": "object[]",
              "schema": [
                {
                  "name": "bitmap_type",
                  "kind": "required",
                  "type": "string<jpg | png>",
                  "description": "Type of the bitmap, valid values are \"jpg\" and \"png\"",
                  "example": "png"
                },
                {
                  "name": "bitmap_data",
                  "kind": "required",
                  "type": "string",
                  "description": "Image date as base64 encoded string",
                  "example": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAFUlEQVR42mP8z8BQz0AEYBxVSF+FABJADveWkH6oAAAAAElFTkSuQmCC"
                },
                {
                  "name": "location",
                  "kind": "required",
                  "type": "object",
                  "description": "Location of the center of the bitmap",
                  "example": "",
                  "schema": [
                    {
                      "name": "x",
                      "kind": "optional",
                      "type": "number",
                      "description": "X coordinate of location",
                      "example": 100
                    },
                    {
                      "name": "y",
                      "kind": "optional",
                      "type": "number",
                      "description": "Y coordinate of location",
                      "example": 100
                    },
                    {
                      "name": "z",
                      "kind": "optional",
                      "type": "number",
                      "description": "Z coordinate of location",
                      "example": 100
                    }
                  ]
                },
                {
                  "name": "normal",
                  "kind": "required",
                  "type": "object",
                  "description": "Normalized vector describing the bitmap direction",
                  "example": "",
                  "schema": [
                    {
                      "name": "x",
                      "kind": "optional",
                      "type": "number",
                      "description": "X coordinate of vector",
                      "example": 0
                    },
                    {
                      "name": "y",
                      "kind": "optional",
                      "type": "number",
                      "description": "Y coordinate of vector",
                      "example": 1
                    },
                    {
                      "name": "z",
                      "kind": "optional",
                      "type": "number",
                      "description": "Z coordinate of vector",
                      "example": 0
                    }
                  ]
                },
                {
                  "name": "up",
                  "kind": "required",
                  "type": "object",
                  "description": "Normalized vector describing the bitmap orientation",
                  "example": "",
                  "schema": [
                    {
                      "name": "x",
                      "kind": "optional",
                      "type": "number",
                      "description": "X coordinate of vector",
                      "example": 0
                    },
                    {
                      "name": "y",
                      "kind": "optional",
                      "type": "number",
                      "description": "Y coordinate of vector",
                      "example": 0
                    },
                    {
                      "name": "z",
                      "kind": "optional",
                      "type": "number",
                      "description": "Z coordinate of vector",
                      "example": 1
                    }
                  ]
                },
                {
                  "name": "height",
                  "kind": "required",
                  "type": "number",
                  "description": "Height of bitmap in the scene",
                  "example": 20
                }
              ]
            },
            {
              "name": "snapshot",
              "kind": "optional",
              "type": "object",
              "description": "",
              "example": "",
              "schema": [
                {
                  "name": "snapshot_type",
                  "kind": "required",
                  "type": "string<jpg | png>",
                  "description": "Format of snapshot, valid values are \"jpg\" and \"png\"",
                  "example": "png"
                },
                {
                  "name": "snapshot_data",
                  "kind": "required",
                  "type": "string",
                  "description": "Image date as base64 encoded string",
                  "example": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAFUlEQVR42mP8z8BQz0AEYBxVSF+FABJADveWkH6oAAAAAElFTkSuQmCC"
                }
              ]
            },
            {
              "name": "components",
              "kind": "optional",
              "type": "object",
              "description": "Components of the viewpoint",
              "example": "",
              "schema": [
                {
                  "name": "selection",
                  "kind": "optional",
                  "type": "array",
                  "description": "List of selected components",
                  "example": "",
                  "itemType": "object",
                  "customType": "object[]",
                  "schema": [
                    {
                      "name": "ifc_guid",
                      "kind": "optional",
                      "type": "string",
                      "description": "IFC guid of the component",
                      "example": "3BY5alwwL00QXHtY2qmHYZ"
                    },
                    {
                      "name": "originating_system",
                      "kind": "optional",
                      "type": "string",
                      "description": "Originating system of the component",
                      "example": ""
                    },
                    {
                      "name": "authoring_tool_id",
                      "kind": "optional",
                      "type": "string",
                      "description": "Id of the component in the authoring tool",
                      "example": ""
                    }
                  ]
                },
                {
                  "name": "coloring",
                  "kind": "optional",
                  "type": "array",
                  "description": "List of colored components",
                  "example": "",
                  "itemType": "object",
                  "customType": "object[]",
                  "schema": [
                    {
                      "name": "color",
                      "kind": "required",
                      "type": "string",
                      "description": "Color of the components",
                      "example": "#dddddd"
                    },
                    {
                      "name": "components",
                      "kind": "required",
                      "type": "array",
                      "description": "",
                      "example": "",
                      "itemType": "object",
                      "customType": "object[]",
                      "schema": [
                        {
                          "name": "ifc_guid",
                          "kind": "optional",
                          "type": "string",
                          "description": "IFC guid of the component",
                          "example": "3BY5alwwL00QXHtY2qmHYZ"
                        },
                        {
                          "name": "originating_system",
                          "kind": "optional",
                          "type": "string",
                          "description": "Originating system of the component",
                          "example": ""
                        },
                        {
                          "name": "authoring_tool_id",
                          "kind": "optional",
                          "type": "string",
                          "description": "Id of the component in the authoring tool",
                          "example": ""
                        }
                      ]
                    }
                  ]
                },
                {
                  "name": "visibility",
                  "kind": "required",
                  "type": "object",
                  "description": "",
                  "example": "",
                  "schema": [
                    {
                      "name": "default_visibility",
                      "kind": "optional",
                      "type": "boolean",
                      "description": "Visibility of exception components, default is false",
                      "example": true
                    },
                    {
                      "name": "exceptions",
                      "kind": "optional",
                      "type": "array",
                      "description": "Exception components",
                      "example": "",
                      "itemType": "object",
                      "customType": "object[]",
                      "schema": [
                        {
                          "name": "ifc_guid",
                          "kind": "optional",
                          "type": "string",
                          "description": "IFC guid of the component",
                          "example": "3BY5alwwL00QXHtY2qmHYZ"
                        },
                        {
                          "name": "originating_system",
                          "kind": "optional",
                          "type": "string",
                          "description": "Originating system of the component",
                          "example": ""
                        },
                        {
                          "name": "authoring_tool_id",
                          "kind": "optional",
                          "type": "string",
                          "description": "Id of the component in the authoring tool",
                          "example": ""
                        }
                      ]
                    },
                    {
                      "name": "view_setup_hints",
                      "kind": "optional",
                      "type": "object",
                      "description": "",
                      "example": "",
                      "schema": [
                        {
                          "name": "spaces_visible",
                          "kind": "optional",
                          "type": "boolean",
                          "description": "Visibility of spaces, default is false",
                          "example": true
                        },
                        {
                          "name": "space_boundaries_visible",
                          "kind": "optional",
                          "type": "boolean",
                          "description": "Visibility of space boundaries, default is false",
                          "example": true
                        },
                        {
                          "name": "openings_visible",
                          "kind": "optional",
                          "type": "boolean",
                          "description": "Visibility of openings, default is false",
                          "example": true
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ],
          "isExpanded": true
        }
      ],
      "formDataParameters": [],
      "oAuthParameters": [
        {
          "id": "Bearer",
          "name": "Bearer",
          "kind": "optional",
          "type": "http",
          "scheme": "bearer"
        }
      ]
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "OK",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "",
            "customType": "viewpoint",
            "schema": [
              {
                "name": "guid",
                "kind": "optional",
                "type": "string",
                "description": "Represented as compacted UUID using 32 hexadecimal characters",
                "example": "52959166-dbd2-44eb-81bb-74f955f30e0f"
              },
              {
                "name": "orthogonal_camera",
                "kind": "optional",
                "type": "object",
                "description": "Details of orthogonal camera if applicable",
                "example": "",
                "schema": [
                  {
                    "name": "camera_view_point",
                    "kind": "optional",
                    "type": "object",
                    "description": "Location of the camera",
                    "example": "",
                    "schema": [
                      {
                        "name": "x",
                        "kind": "optional",
                        "type": "number",
                        "description": "X coordinate of camera location",
                        "example": 100
                      },
                      {
                        "name": "y",
                        "kind": "optional",
                        "type": "number",
                        "description": "Y coordinate of camera location",
                        "example": 100
                      },
                      {
                        "name": "z",
                        "kind": "optional",
                        "type": "number",
                        "description": "Z coordinate of camera location",
                        "example": 100
                      }
                    ]
                  },
                  {
                    "name": "camera_direction",
                    "kind": "optional",
                    "type": "object",
                    "description": "Direction of the camera",
                    "example": "",
                    "schema": [
                      {
                        "name": "x",
                        "kind": "optional",
                        "type": "number",
                        "description": "X coordinate of camera direction",
                        "example": 100
                      },
                      {
                        "name": "y",
                        "kind": "optional",
                        "type": "number",
                        "description": "Y coordinate of camera direction",
                        "example": 100
                      },
                      {
                        "name": "z",
                        "kind": "optional",
                        "type": "number",
                        "description": "Z coordinate of camera direction",
                        "example": 100
                      }
                    ]
                  },
                  {
                    "name": "camera_up_vector",
                    "kind": "optional",
                    "type": "object",
                    "description": "Normalized vector describing the camera orientation",
                    "example": "",
                    "schema": [
                      {
                        "name": "x",
                        "kind": "optional",
                        "type": "number",
                        "description": "X coordinate of vector",
                        "example": 0
                      },
                      {
                        "name": "y",
                        "kind": "optional",
                        "type": "number",
                        "description": "Y coordinate of vector",
                        "example": 0
                      },
                      {
                        "name": "z",
                        "kind": "optional",
                        "type": "number",
                        "description": "Z coordinate of vector",
                        "example": 1
                      }
                    ]
                  },
                  {
                    "name": "view_to_world_scale",
                    "kind": "optional",
                    "type": "number",
                    "description": "The scale factor between the camera and the scene",
                    "example": 14
                  },
                  {
                    "name": "aspect_ratio",
                    "kind": "optional",
                    "type": "number",
                    "description": "Aspect ratio of the scene",
                    "example": 1
                  }
                ]
              },
              {
                "name": "perspective_camera",
                "kind": "optional",
                "type": "object",
                "description": "Details of perspective camera if applicable",
                "example": "",
                "schema": [
                  {
                    "name": "camera_view_point",
                    "kind": "optional",
                    "type": "object",
                    "description": "Location of the camera",
                    "example": "",
                    "schema": [
                      {
                        "name": "x",
                        "kind": "optional",
                        "type": "number",
                        "description": "X coordinate of camera location",
                        "example": 100
                      },
                      {
                        "name": "y",
                        "kind": "optional",
                        "type": "number",
                        "description": "Y coordinate of camera location",
                        "example": 100
                      },
                      {
                        "name": "z",
                        "kind": "optional",
                        "type": "number",
                        "description": "Z coordinate of camera location",
                        "example": 100
                      }
                    ]
                  },
                  {
                    "name": "camera_direction",
                    "kind": "optional",
                    "type": "object",
                    "description": "Direction of the camera",
                    "example": "",
                    "schema": [
                      {
                        "name": "x",
                        "kind": "optional",
                        "type": "number",
                        "description": "X coordinate of camera direction",
                        "example": 100
                      },
                      {
                        "name": "y",
                        "kind": "optional",
                        "type": "number",
                        "description": "Y coordinate of camera direction",
                        "example": 100
                      },
                      {
                        "name": "z",
                        "kind": "optional",
                        "type": "number",
                        "description": "Z coordinate of camera direction",
                        "example": 100
                      }
                    ]
                  },
                  {
                    "name": "camera_up_vector",
                    "kind": "optional",
                    "type": "object",
                    "description": "Normalized vector describing the camera orientation",
                    "example": "",
                    "schema": [
                      {
                        "name": "x",
                        "kind": "optional",
                        "type": "number",
                        "description": "X coordinate of vector",
                        "example": 0
                      },
                      {
                        "name": "y",
                        "kind": "optional",
                        "type": "number",
                        "description": "Y coordinate of vector",
                        "example": 0
                      },
                      {
                        "name": "z",
                        "kind": "optional",
                        "type": "number",
                        "description": "Z coordinate of vector",
                        "example": 1
                      }
                    ]
                  },
                  {
                    "name": "field_of_view",
                    "kind": "optional",
                    "type": "number",
                    "description": "Field of view of the camera in degrees",
                    "example": 60
                  },
                  {
                    "name": "aspect_ratio",
                    "kind": "optional",
                    "type": "number",
                    "description": "Aspect ratio of the scene",
                    "example": 1
                  }
                ]
              },
              {
                "name": "lines",
                "kind": "optional",
                "type": "array",
                "description": "List of graphical lines",
                "example": "",
                "itemType": "object",
                "customType": "object[]",
                "schema": [
                  {
                    "name": "start_point",
                    "kind": "optional",
                    "type": "object",
                    "description": "Start point of the line",
                    "example": "",
                    "schema": [
                      {
                        "name": "x",
                        "kind": "optional",
                        "type": "number",
                        "description": "X coordinate of start point",
                        "example": 100
                      },
                      {
                        "name": "y",
                        "kind": "optional",
                        "type": "number",
                        "description": "Y coordinate of start point",
                        "example": 100
                      },
                      {
                        "name": "z",
                        "kind": "optional",
                        "type": "number",
                        "description": "Z coordinate of start point",
                        "example": 100
                      }
                    ]
                  },
                  {
                    "name": "end_point",
                    "kind": "optional",
                    "type": "object",
                    "description": "End point of the line",
                    "example": "",
                    "schema": [
                      {
                        "name": "x",
                        "kind": "optional",
                        "type": "number",
                        "description": "X coordinate of end point",
                        "example": 200
                      },
                      {
                        "name": "y",
                        "kind": "optional",
                        "type": "number",
                        "description": "Y coordinate of end point",
                        "example": 200
                      },
                      {
                        "name": "z",
                        "kind": "optional",
                        "type": "number",
                        "description": "Z coordinate of end point",
                        "example": 200
                      }
                    ]
                  }
                ]
              },
              {
                "name": "clipping_planes",
                "kind": "optional",
                "type": "array",
                "description": "List of clipping planes",
                "example": "",
                "itemType": "object",
                "customType": "object[]",
                "schema": [
                  {
                    "name": "location",
                    "kind": "optional",
                    "type": "object",
                    "description": "Location of the clipping plane",
                    "example": "",
                    "schema": [
                      {
                        "name": "x",
                        "kind": "optional",
                        "type": "number",
                        "description": "X coordinate of location",
                        "example": 100
                      },
                      {
                        "name": "y",
                        "kind": "optional",
                        "type": "number",
                        "description": "Y coordinate of location",
                        "example": 100
                      },
                      {
                        "name": "z",
                        "kind": "optional",
                        "type": "number",
                        "description": "Z coordinate of location",
                        "example": 100
                      }
                    ]
                  },
                  {
                    "name": "direction",
                    "kind": "optional",
                    "type": "object",
                    "description": "Direction of the clipping plane",
                    "example": "",
                    "schema": [
                      {
                        "name": "x",
                        "kind": "optional",
                        "type": "number",
                        "description": "X coordinate of direction",
                        "example": 0
                      },
                      {
                        "name": "y",
                        "kind": "optional",
                        "type": "number",
                        "description": "Y coordinate of direction",
                        "example": 0
                      },
                      {
                        "name": "z",
                        "kind": "optional",
                        "type": "number",
                        "description": "Z coordinate of direction",
                        "example": 1
                      }
                    ]
                  }
                ]
              },
              {
                "name": "bitmaps",
                "kind": "optional",
                "type": "array",
                "description": "List of embedded images",
                "example": "",
                "itemType": "object",
                "customType": "object[]",
                "schema": [
                  {
                    "name": "guid",
                    "kind": "optional",
                    "type": "string",
                    "description": "Id of the bitmap",
                    "example": "8c2f8818-e413-49d4-8978-7f7d95d2b27e"
                  },
                  {
                    "name": "bitmap_type",
                    "kind": "optional",
                    "type": "string<jpg | png>",
                    "description": "Type of the bitmap, valid values are \"jpg\" and \"png\"",
                    "example": "png"
                  },
                  {
                    "name": "location",
                    "kind": "optional",
                    "type": "object",
                    "description": "Location of the center of the bitmap",
                    "example": "",
                    "schema": [
                      {
                        "name": "x",
                        "kind": "optional",
                        "type": "number",
                        "description": "X coordinate of location",
                        "example": 100
                      },
                      {
                        "name": "y",
                        "kind": "optional",
                        "type": "number",
                        "description": "Y coordinate of location",
                        "example": 100
                      },
                      {
                        "name": "z",
                        "kind": "optional",
                        "type": "number",
                        "description": "Z coordinate of location",
                        "example": 100
                      }
                    ]
                  },
                  {
                    "name": "normal",
                    "kind": "optional",
                    "type": "object",
                    "description": "Normalized vector describing the bitmap direction",
                    "example": "",
                    "schema": [
                      {
                        "name": "x",
                        "kind": "optional",
                        "type": "number",
                        "description": "X coordinate of vector",
                        "example": 0
                      },
                      {
                        "name": "y",
                        "kind": "optional",
                        "type": "number",
                        "description": "Y coordinate of vector",
                        "example": 1
                      },
                      {
                        "name": "z",
                        "kind": "optional",
                        "type": "number",
                        "description": "Z coordinate of vector",
                        "example": 0
                      }
                    ]
                  },
                  {
                    "name": "up",
                    "kind": "optional",
                    "type": "object",
                    "description": "Normalized vector describing the bitmap orientation",
                    "example": "",
                    "schema": [
                      {
                        "name": "x",
                        "kind": "optional",
                        "type": "number",
                        "description": "X coordinate of vector",
                        "example": 0
                      },
                      {
                        "name": "y",
                        "kind": "optional",
                        "type": "number",
                        "description": "Y coordinate of vector",
                        "example": 0
                      },
                      {
                        "name": "z",
                        "kind": "optional",
                        "type": "number",
                        "description": "Z coordinate of vector",
                        "example": 1
                      }
                    ]
                  },
                  {
                    "name": "height",
                    "kind": "optional",
                    "type": "number",
                    "description": "Height of bitmap in the scene",
                    "example": 20
                  }
                ]
              },
              {
                "name": "snapshot",
                "kind": "optional",
                "type": "object",
                "description": "",
                "example": "",
                "schema": [
                  {
                    "name": "snapshot_type",
                    "kind": "optional",
                    "type": "string<jpg | png>",
                    "description": "Format of snapshot, valid values are \"jpg\" and \"png\"",
                    "example": "png"
                  }
                ]
              },
              {
                "name": "authorization",
                "kind": "optional",
                "type": "object",
                "description": "",
                "example": "",
                "schema": [
                  {
                    "name": "viewpoint_actions",
                    "kind": "optional",
                    "type": "array",
                    "description": "List of viewpoint actions",
                    "example": "[\"delete\"]",
                    "itemType": "string",
                    "customType": "string[]",
                    "itemExample": "",
                    "itemDefault": ""
                  }
                ]
              }
            ],
            "modelRef": "#/components/schemas/viewpoint",
            "isExpanded": true
          }
        ]
      }
    ],
    "hasXCodeSamples": false,
    "examples": {
      "languages": [
        {
          "id": "owaSdIqb15Kbf1d2RGSu_",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request POST \\\n     --url https://api.catenda.com/opencde/bcf/3.0/projects/{topic-board-id}/topics/{topic-id}/viewpoints \\\n     --header 'accept: application/json' \\\n     --header 'content-type: application/json' \\\n     --data '{\n     \"orthogonal_camera\": {\n     \"camera_view_point\": {},\n     \"camera_direction\": {},\n     \"camera_up_vector\": {},\n     \"view_to_world_scale\": 14,\n     \"aspect_ratio\": 1\n     },\n     \"perspective_camera\": {\n     \"camera_view_point\": {},\n     \"camera_direction\": {},\n     \"camera_up_vector\": {},\n     \"field_of_view\": 60,\n     \"aspect_ratio\": 1\n     },\n     \"lines\": [\n     {\n     \"start_point\": {},\n     \"end_point\": {}\n     }\n     ],\n     \"clipping_planes\": [\n     {\n     \"location\": {},\n     \"direction\": {}\n     }\n     ],\n     \"bitmaps\": [\n     {\n     \"bitmap_type\": \"png\",\n     \"bitmap_data\": \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAFUlEQVR42mP8z8BQz0AEYBxVSF+FABJADveWkH6oAAAAAElFTkSuQmCC\",\n     \"location\": {},\n     \"normal\": {},\n     \"up\": {},\n     \"height\": 20\n     }\n     ],\n     \"snapshot\": {\n     \"snapshot_type\": \"png\",\n     \"snapshot_data\": \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAFUlEQVR42mP8z8BQz0AEYBxVSF+FABJADveWkH6oAAAAAElFTkSuQmCC\"\n     },\n     \"components\": {\n     \"coloring\": [\n     {\n     \"color\": \"#dddddd\",\n     \"components\": [\n     {}\n     ]\n     }\n     ],\n     \"visibility\": {}\n     }\n     }'"
        },
        {
          "id": "jjztnD2E2zFm_j_O50BBS",
          "language": "javascript",
          "label": "javascript",
          "code": "var myHeaders = new Headers();\nmyHeaders.append(\"accept\", \"application/json\");\nmyHeaders.append(\"content-type\", \"application/json\");\n\nvar raw = JSON.stringify({\n   \"orthogonal_camera\": {\n      \"camera_view_point\": {},\n      \"camera_direction\": {},\n      \"camera_up_vector\": {},\n      \"view_to_world_scale\": 14,\n      \"aspect_ratio\": 1\n   },\n   \"perspective_camera\": {\n      \"camera_view_point\": {},\n      \"camera_direction\": {},\n      \"camera_up_vector\": {},\n      \"field_of_view\": 60,\n      \"aspect_ratio\": 1\n   },\n   \"lines\": [\n      {\n         \"start_point\": {},\n         \"end_point\": {}\n      }\n   ],\n   \"clipping_planes\": [\n      {\n         \"location\": {},\n         \"direction\": {}\n      }\n   ],\n   \"bitmaps\": [\n      {\n         \"bitmap_type\": \"png\",\n         \"bitmap_data\": \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAFUlEQVR42mP8z8BQz0AEYBxVSF+FABJADveWkH6oAAAAAElFTkSuQmCC\",\n         \"location\": {},\n         \"normal\": {},\n         \"up\": {},\n         \"height\": 20\n      }\n   ],\n   \"snapshot\": {\n      \"snapshot_type\": \"png\",\n      \"snapshot_data\": \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAFUlEQVR42mP8z8BQz0AEYBxVSF+FABJADveWkH6oAAAAAElFTkSuQmCC\"\n   },\n   \"components\": {\n      \"coloring\": [\n         {\n            \"color\": \"#dddddd\",\n            \"components\": [\n               {}\n            ]\n         }\n      ],\n      \"visibility\": {}\n   }\n});\n\nvar requestOptions = {\n   method: 'POST',\n   headers: myHeaders,\n   body: raw,\n   redirect: 'follow'\n};\n\nfetch(\"https://api.catenda.com/opencde/bcf/3.0/projects/{topic-board-id}/topics/{topic-id}/viewpoints\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "zSQP1traOXCU8jJM1IHyV",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://api.catenda.com/opencde/bcf/3.0/projects/{topic-board-id}/topics/{topic-id}/viewpoints\")\n\nhttps = Net::HTTP.new(url.host, url.port)\nhttps.use_ssl = true\n\nrequest = Net::HTTP::Post.new(url)\nrequest[\"accept\"] = \"application/json\"\nrequest[\"content-type\"] = \"application/json\"\nrequest.body = JSON.dump({\n   \"orthogonal_camera\": {\n      \"camera_view_point\": {},\n      \"camera_direction\": {},\n      \"camera_up_vector\": {},\n      \"view_to_world_scale\": 14,\n      \"aspect_ratio\": 1\n   },\n   \"perspective_camera\": {\n      \"camera_view_point\": {},\n      \"camera_direction\": {},\n      \"camera_up_vector\": {},\n      \"field_of_view\": 60,\n      \"aspect_ratio\": 1\n   },\n   \"lines\": [\n      {\n         \"start_point\": {},\n         \"end_point\": {}\n      }\n   ],\n   \"clipping_planes\": [\n      {\n         \"location\": {},\n         \"direction\": {}\n      }\n   ],\n   \"bitmaps\": [\n      {\n         \"bitmap_type\": \"png\",\n         \"bitmap_data\": \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAFUlEQVR42mP8z8BQz0AEYBxVSF+FABJADveWkH6oAAAAAElFTkSuQmCC\",\n         \"location\": {},\n         \"normal\": {},\n         \"up\": {},\n         \"height\": 20\n      }\n   ],\n   \"snapshot\": {\n      \"snapshot_type\": \"png\",\n      \"snapshot_data\": \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAFUlEQVR42mP8z8BQz0AEYBxVSF+FABJADveWkH6oAAAAAElFTkSuQmCC\"\n   },\n   \"components\": {\n      \"coloring\": [\n         {\n            \"color\": \"#dddddd\",\n            \"components\": [\n               {}\n            ]\n         }\n      ],\n      \"visibility\": {}\n   }\n})\n\nresponse = https.request(request)\nputs response.read_body\n"
        },
        {
          "id": "tPpnE106OkiSqhKw099Ai",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"https://api.catenda.com/opencde/bcf/3.0/projects/{topic-board-id}/topics/{topic-id}/viewpoints\"\n\npayload = json.dumps({\n   \"orthogonal_camera\": {\n      \"camera_view_point\": {},\n      \"camera_direction\": {},\n      \"camera_up_vector\": {},\n      \"view_to_world_scale\": 14,\n      \"aspect_ratio\": 1\n   },\n   \"perspective_camera\": {\n      \"camera_view_point\": {},\n      \"camera_direction\": {},\n      \"camera_up_vector\": {},\n      \"field_of_view\": 60,\n      \"aspect_ratio\": 1\n   },\n   \"lines\": [\n      {\n         \"start_point\": {},\n         \"end_point\": {}\n      }\n   ],\n   \"clipping_planes\": [\n      {\n         \"location\": {},\n         \"direction\": {}\n      }\n   ],\n   \"bitmaps\": [\n      {\n         \"bitmap_type\": \"png\",\n         \"bitmap_data\": \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAFUlEQVR42mP8z8BQz0AEYBxVSF+FABJADveWkH6oAAAAAElFTkSuQmCC\",\n         \"location\": {},\n         \"normal\": {},\n         \"up\": {},\n         \"height\": 20\n      }\n   ],\n   \"snapshot\": {\n      \"snapshot_type\": \"png\",\n      \"snapshot_data\": \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAFUlEQVR42mP8z8BQz0AEYBxVSF+FABJADveWkH6oAAAAAElFTkSuQmCC\"\n   },\n   \"components\": {\n      \"coloring\": [\n         {\n            \"color\": \"#dddddd\",\n            \"components\": [\n               {}\n            ]\n         }\n      ],\n      \"visibility\": {}\n   }\n})\nheaders = {\n   'accept': 'application/json',\n   'content-type': 'application/json'\n}\n\nresponse = requests.request(\"POST\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "owaSdIqb15Kbf1d2RGSu_"
    },
    "results": {
      "languages": [
        {
          "id": "ifiKvzsg0wkyrC_Q9sBEB",
          "language": "200",
          "code": "// OK\n{\n  \"guid\": \"52959166-dbd2-44eb-81bb-74f955f30e0f\",\n  \"orthogonal_camera\": {\n    \"camera_view_point\": {\n      \"x\": 100,\n      \"y\": 100,\n      \"z\": 100\n    },\n    \"camera_direction\": {\n      \"x\": 100,\n      \"y\": 100,\n      \"z\": 100\n    },\n    \"camera_up_vector\": {\n      \"x\": 0,\n      \"y\": 0,\n      \"z\": 1\n    },\n    \"view_to_world_scale\": 14,\n    \"aspect_ratio\": 1\n  },\n  \"perspective_camera\": {\n    \"camera_view_point\": {\n      \"x\": 100,\n      \"y\": 100,\n      \"z\": 100\n    },\n    \"camera_direction\": {\n      \"x\": 100,\n      \"y\": 100,\n      \"z\": 100\n    },\n    \"camera_up_vector\": {\n      \"x\": 0,\n      \"y\": 0,\n      \"z\": 1\n    },\n    \"field_of_view\": 60,\n    \"aspect_ratio\": 1\n  },\n  \"lines\": [\n    {\n      \"start_point\": {\n        \"x\": 100,\n        \"y\": 100,\n        \"z\": 100\n      },\n      \"end_point\": {\n        \"x\": 200,\n        \"y\": 200,\n        \"z\": 200\n      }\n    }\n  ],\n  \"clipping_planes\": [\n    {\n      \"location\": {\n        \"x\": 100,\n        \"y\": 100,\n        \"z\": 100\n      },\n      \"direction\": {\n        \"x\": 0,\n        \"y\": 0,\n        \"z\": 1\n      }\n    }\n  ],\n  \"bitmaps\": [\n    {\n      \"guid\": \"8c2f8818-e413-49d4-8978-7f7d95d2b27e\",\n      \"bitmap_type\": \"png\",\n      \"location\": {\n        \"x\": 100,\n        \"y\": 100,\n        \"z\": 100\n      },\n      \"normal\": {\n        \"x\": 0,\n        \"y\": 1,\n        \"z\": 0\n      },\n      \"up\": {\n        \"x\": 0,\n        \"y\": 0,\n        \"z\": 1\n      },\n      \"height\": 20\n    }\n  ],\n  \"snapshot\": {\n    \"snapshot_type\": \"png\"\n  },\n  \"authorization\": {\n    \"viewpoint_actions\": [\n      \"\"\n    ]\n  }\n}"
        }
      ],
      "selectedLanguageId": "ifiKvzsg0wkyrC_Q9sBEB"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}