{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/trimble/json-schema/trimble-upsert-node-request-schema.json",
  "title": "The node update request. Allow to execute simple set operations on a linkset - set (using 'links' property), add (using 'add' property) and remove (using 'remove' property). Only one linkset operation can be present in the request.",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/trimble-connect-organizer-openapi.yml#/components/schemas/UpsertNodeRequest",
  "type": "object",
  "properties": {
    "v": {
      "type": "integer",
      "description": "The optional last seen version number. If supplied in the body or in the IfMatch header, the concurrency is checked."
    },
    "name": {
      "type": "string",
      "description": "The name."
    },
    "links": {
      "type": "array",
      "description": "The set of links representing the entities to be associated with the node.  If this property is specified, then 'add' and 'remove' properties should not be given. Links cannot be empty or null. There cannot be duplicate links.",
      "items": {
        "type": "string",
        "description": "The link. It is recommended to use FRN notation."
      }
    },
    "add": {
      "type": "array",
      "description": "The set of links to add to the node. If this property is specified, then 'links' and 'remove' properties should not be given. Links cannot be empty or null. There cannot be duplicate links. If links are already present they are ignored.",
      "items": {
        "type": "string",
        "description": "The link. It is recommended to use FRN notation."
      }
    },
    "remove": {
      "type": "array",
      "description": "The set of links to be removed from the node.  If this property is specified, then 'links' and 'add' properties should not be given. Links cannot be empty or null. There cannot be duplicate links. If links don't exist they are ignored.",
      "items": {
        "type": "string",
        "description": "The link. It is recommended to use FRN notation."
      }
    },
    "geometry": {
      "title": "The geometry data.",
      "required": [
        "data"
      ],
      "type": "object",
      "properties": {
        "data": {
          "type": "string",
          "description": "The base64 encoded geometry data. To remove the geometry from the node pass an empty string."
        },
        "contentType": {
          "type": "string",
          "description": "The content type (MIME) of the geometry data."
        }
      }
    },
    "metadata": {
      "type": "object",
      "properties": {},
      "description": "Application specific metadata for the node."
    }
  }
}