{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pipeliner/json-schema/pipeliner-update-custom-entity-input-schema.json",
  "title": "updateCustomEntityInput",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/pipeliner-custom-entity-api-openapi.yml#/components/schemas/updateCustomEntityInput",
  "properties": {
    "currency_exchange_rates_list_id": {
      "type": "string",
      "format": "uuid",
      "description": "Id of the currency exchange rate list applied to this record."
    },
    "name": {
      "type": "string",
      "description": "Name of the entity and its default text representation."
    },
    "owner_id": {
      "type": "string",
      "format": "uuid",
      "description": "Id of the record owner."
    },
    "share_mode": {
      "type": "integer",
      "description": "Sharing model applied on top of the owner/unit visibility (e.g. shared with selected sales units or selected users).\n\nInteger enum value: 0 - Standard, 1 - Private, 2 - AllView, 3 - AllEdit",
      "enum": [
        0,
        1,
        2,
        3
      ]
    },
    "type_id": {
      "type": "string",
      "format": "uuid",
      "description": "Id of the custom entity type."
    },
    "unit_id": {
      "type": "string",
      "format": "uuid",
      "description": "Id of the sales unit."
    },
    "sharing_units": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uri"
          }
        },
        "description": "Relation to CustomEntitySharingSalesUnitRelation, see: 'updateCustomEntitySharingSalesUnitRelationInput' object for properties."
      },
      "description": "Sales units that have been granted shared access to this custom entity record. Editable only when share_mode allows unit sharing."
    },
    "sharing_clients": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uri"
          }
        },
        "description": "Relation to CustomEntitySharingClientRelation, see: 'updateCustomEntitySharingClientRelationInput' object for properties."
      },
      "description": "Users that have been granted shared access to this custom entity record. Editable only when share_mode allows user sharing."
    },
    "documents": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uri"
          }
        },
        "description": "Relation to CloudObjectRelation, see: 'updateCloudObjectRelationInput' object for properties."
      },
      "description": "Documents linked to this custom entity record."
    },
    "static_profiles": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uri"
          }
        },
        "description": "Relation to ProfileRelation, see: 'updateProfileRelationInput' object for properties."
      },
      "description": "Saved view profiles this custom entity record currently matches."
    },
    "tags": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uri"
          }
        },
        "description": "Relation to TagRelation, see: 'updateTagRelationInput' object for properties."
      },
      "description": "Tag labels applied to this custom entity record."
    },
    "revision": {
      "type": "integer",
      "format": "int32",
      "description": "Revision when entity was lastly changed."
    }
  }
}