{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pipeliner/json-schema/pipeliner-client-favorite-schema.json",
  "title": "ClientFavorite",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/pipeliner-client-api-openapi.yml#/components/schemas/ClientFavorite",
  "properties": {
    "is_delete_protected": {
      "type": "boolean",
      "description": "Tells if the entity instance is protected against delete (Entities that need to be present in the system at any time). Delete action still may fail if entity is deletable, due some other additional validations.",
      "readOnly": true
    },
    "id": {
      "type": "string",
      "format": "uuid",
      "description": "Unique identifier of entity.",
      "readOnly": true
    },
    "is_deleted": {
      "type": "boolean",
      "description": "Specifies if the entity is considered deleted.",
      "readOnly": true
    },
    "modified": {
      "type": "string",
      "format": "date-time",
      "description": "Last modification time.",
      "readOnly": true
    },
    "created": {
      "type": "string",
      "format": "date-time",
      "description": "Creation time.",
      "readOnly": true
    },
    "account": {
      "type": "string",
      "format": "uri",
      "description": "Account marked as favorite, when this favorite points to an account.\n\nRelation to Account. By default it is returned as URI to related resource. Using parameter 'expand', it will return full entity. See: 'Account' object for properties."
    },
    "appointment": {
      "type": "string",
      "format": "uri",
      "description": "Appointment marked as favorite. Set when activity_id resolves to an Appointment.\n\nRelation to Appointment. By default it is returned as URI to related resource. Using parameter 'expand', it will return full entity. See: 'Appointment' object for properties."
    },
    "task": {
      "type": "string",
      "format": "uri",
      "description": "Task marked as favorite. Set when activity_id resolves to a Task.\n\nRelation to Task. By default it is returned as URI to related resource. Using parameter 'expand', it will return full entity. See: 'Task' object for properties."
    },
    "contact": {
      "type": "string",
      "format": "uri",
      "description": "Contact marked as favorite, when this favorite points to a contact.\n\nRelation to Contact. By default it is returned as URI to related resource. Using parameter 'expand', it will return full entity. See: 'Contact' object for properties."
    },
    "custom_entity": {
      "type": "string",
      "format": "uri",
      "description": "Custom entity record marked as favorite, when this favorite points to a custom entity.\n\nRelation to CustomEntity. By default it is returned as URI to related resource. Using parameter 'expand', it will return full entity. See: 'CustomEntity' object for properties."
    },
    "email": {
      "type": "string",
      "format": "uri",
      "description": "Email marked as favorite, when this favorite points to an email.\n\nRelation to Email. By default it is returned as URI to related resource. Using parameter 'expand', it will return full entity. See: 'Email' object for properties."
    },
    "lead": {
      "type": "string",
      "format": "uri",
      "description": "Lead marked as favorite. Set when lead_oppty_id resolves to a Lead.\n\nRelation to Lead. By default it is returned as URI to related resource. Using parameter 'expand', it will return full entity. See: 'Lead' object for properties."
    },
    "oppty": {
      "type": "string",
      "format": "uri",
      "description": "Opportunity marked as favorite. Set when lead_oppty_id resolves to an Opportunity.\n\nRelation to Opportunity. By default it is returned as URI to related resource. Using parameter 'expand', it will return full entity. See: 'Opportunity' object for properties."
    },
    "owner": {
      "type": "string",
      "format": "uri",
      "description": "User who marked the record as favorite.\n\nRelation to Client. By default it is returned as URI to related resource. Using parameter 'expand', it will return full entity. See: 'Client' object for properties."
    },
    "profile": {
      "type": "string",
      "format": "uri",
      "description": "Screen profile marked as favorite, when this favorite points to a profile.\n\nRelation to Profile. By default it is returned as URI to related resource. Using parameter 'expand', it will return full entity. See: 'Profile' object for properties."
    },
    "project": {
      "type": "string",
      "format": "uri",
      "description": "Project marked as favorite, when this favorite points to a project.\n\nRelation to Project. By default it is returned as URI to related resource. Using parameter 'expand', it will return full entity. See: 'Project' object for properties."
    },
    "quote": {
      "type": "string",
      "format": "uri",
      "description": "Quote marked as favorite, when this favorite points to a quote.\n\nRelation to Quote. By default it is returned as URI to related resource. Using parameter 'expand', it will return full entity. See: 'Quote' object for properties."
    },
    "report": {
      "type": "string",
      "format": "uri",
      "description": "Report marked as favorite, when this favorite points to a report.\n\nRelation to Report. By default it is returned as URI to related resource. Using parameter 'expand', it will return full entity. See: 'Report' object for properties."
    },
    "account_id": {
      "type": "string",
      "format": "uuid",
      "description": "Id of the favorite account."
    },
    "activity_id": {
      "type": "string",
      "format": "uuid",
      "description": "Id of the favorite appointment or task, or empty when not pointing to an activity."
    },
    "contact_id": {
      "type": "string",
      "format": "uuid",
      "description": "Id of the favorite contact."
    },
    "custom_entity_id": {
      "type": "string",
      "format": "uuid",
      "description": "Id of the favorite custom entity record."
    },
    "email_id": {
      "type": "string",
      "format": "uuid",
      "description": "Id of the favorite email."
    },
    "lead_oppty_id": {
      "type": "string",
      "format": "uuid",
      "description": "Id of the favorite lead or opportunity, or empty when not pointing to one."
    },
    "owner_id": {
      "type": "string",
      "format": "uuid",
      "description": "Id of the owning user."
    },
    "profile_id": {
      "type": "string",
      "format": "uuid",
      "description": "Id of the favorite screen profile."
    },
    "project_id": {
      "type": "string",
      "format": "uuid",
      "description": "Id of the favorite project."
    },
    "quote_id": {
      "type": "string",
      "format": "uuid",
      "description": "Id of the favorite quote."
    },
    "report_id": {
      "type": "string",
      "format": "uuid",
      "description": "Id of the favorite report."
    },
    "revision": {
      "type": "integer",
      "format": "int32",
      "description": "Revision when entity was lastly changed."
    }
  },
  "required": [
    "is_delete_protected",
    "id",
    "owner",
    "owner_id"
  ]
}