Loading...
Loading...
Compare original and translation side by side
hubspot schemas --helplistgetcreateupdatedeletecrm.schemas.custom.writebulk-operations/SKILL.mdschemas deletehubspot schemas --helplistgetcreateupdatedeletecrm.schemas.custom.writebulk-operations/SKILL.mdschemas deletehubspot schemas list # JSONL: name, label, singular, objectTypeId, source
hubspot schemas list | jq 'select(.source=="custom")' # custom only
hubspot objects types | jq -c 'select(.source=="custom")' # same set, also shown to confirm `--type` resolvesnameobjectTypeId2-12345678PLATFORM_FLOWhubspot schemas list # JSONL格式:name、label、singular、objectTypeId、source
hubspot schemas list | jq 'select(.source=="custom")' # 仅显示自定义模式
hubspot objects types | jq -c 'select(.source=="custom")' # 同一数据集,也可用于确认`--type`参数是否解析正确nameobjectTypeId2-12345678PLATFORM_FLOWhubspot schemas get petsrequiredPropertiesprimaryDisplayPropertyfullyQualifiedNamejqbulk-operations/resources/json-patterns.mdhubspot schemas get petsrequiredPropertiesprimaryDisplayPropertyfullyQualifiedNamejqbulk-operations/resources/json-patterns.md--file{
"name": "equipment",
"labels": {"singular": "Equipment", "plural": "Equipment"},
"primaryDisplayProperty": "equipment_name",
"requiredProperties": ["equipment_name"],
"properties": [
{"name": "equipment_name", "label": "Name", "type": "string", "fieldType": "text"}
],
"associatedObjects": ["contacts"]
}cat equipment-schema.json | hubspot schemas create --dry-run # preview
hubspot schemas create --file equipment-schema.json # executehubspot properties create --type <name> ...--file{
"name": "equipment",
"labels": {"singular": "Equipment", "plural": "Equipment"},
"primaryDisplayProperty": "equipment_name",
"requiredProperties": ["equipment_name"],
"properties": [
{"name": "equipment_name", "label": "Name", "type": "string", "fieldType": "text"}
],
"associatedObjects": ["contacts"]
}cat equipment-schema.json | hubspot schemas create --dry-run # 预览操作
hubspot schemas create --file equipment-schema.json # 执行操作hubspot properties create --type <name> ...updatehubspot propertiesecho '{"labels":{"singular":"Device","plural":"Devices"}}' | hubspot schemas update equipmentupdate--dry-run--digest --confirm <name>bulk-operations/SKILL.mdupdatehubspot propertiesecho '{"labels":{"singular":"Device","plural":"Devices"}}' | hubspot schemas update equipmentupdate--dry-run--digest --confirm <name>bulk-operations/SKILL.mdMetadataDestroy--dry-run--digest <hash> --confirm <name>bulk-operations/SKILL.mdhubspot schemas delete equipment --dry-runMetadataDestroy--dry-run--digest <hash> --confirm <name>bulk-operations/SKILL.mdhubspot schemas delete equipment --dry-run
Check `hubspot history --since 24h --kind MetadataDestroy` to audit recent schema deletes.
可查看`hubspot history --since 24h --kind MetadataDestroy`来审计最近的模式删除操作。hubspot objects ...name--type--type petsbulk-operations/SKILL.mdcrm-lookuphubspot objects ...name--type--type petsbulk-operations/SKILL.mdcrm-lookup