{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/trimble/json-schema/trimble-update2-dview-request-schema.json",
  "title": "Update2DViewRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/trimble-connect-core-openapi.yml#/components/schemas/Update2DViewRequest",
  "type": "object",
  "properties": {
    "name": {
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "projectId": {
      "type": "string"
    },
    "versionId": {
      "type": "string",
      "description": "Specific versionID of the input file"
    },
    "rotation": {
      "type": "string",
      "description": "This property refers the rotation angle of the 2dview, while creating / updating the view. The possible rotation values are 0, 90, 180, 270 degress. The default rotation value is 0"
    },
    "zoomLevel": {
      "type": "string",
      "description": "This property refers the zoom level of the 2dview, while creating / updating the view. The zoomLevel value is a float value. The default zoomLevel value is 100"
    },
    "pageNumber": {
      "type": "string",
      "description": "Refers current page number while creatig the 2dview. The pageNumber value is an integer value. The default value for pageNumber is 1"
    },
    "assignees": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AssigneesRequest"
      },
      "description": "View assignees"
    },
    "markup": {
      "$ref": "#/$defs/2DViewMarkup"
    },
    "imageData": {
      "type": "string",
      "description": "View image data (base64-encoded, see example)"
    }
  },
  "$defs": {
    "2DViewMarkup": {
      "title": "2DViewMarkup",
      "description": "The markup property contains the markup data properties.",
      "required": [
        "xfdfData"
      ],
      "type": "object",
      "properties": {
        "xfdfData": {
          "type": "string",
          "description": "This xfdfData property value contains the various types (Line, arrow, text) of markups represented in XFDF XML format and it is one of the Adobe standard format. The XFDF stands for XML Forms Data Format XFDF is an XML-based file format for representing form data and markups (annotations) that are contained in a PDF form. The xfdfData value is a string value. In the xfdfData string the double quote \" values are escaping sequenced by back slash or reverse solidus."
        }
      }
    },
    "AssigneesRequest": {
      "title": "AssigneesRequest",
      "required": [
        "id",
        "type"
      ],
      "type": "object",
      "description": "List of users or groups assigned to ToDo.",
      "properties": {
        "id": {
          "type": "string",
          "description": "Id of the user"
        },
        "type": {
          "type": "string",
          "enum": [
            "USER",
            "GROUP"
          ],
          "description": "Type of assignee"
        }
      }
    }
  }
}