Loading...
Loading...
Discover, create, update, and delete custom CRM object schemas. Use when defining a new object type, inspecting existing schemas, or removing one. Record CRUD on custom objects is identical to standard objects — see `bulk-operations`.
npx skill4agent add hubspot/agent-cli-skills custom-object-managementhubspot 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 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> ...updatehubspot 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-run
# → digest=blast-... ; apply_command_hint shows: --digest <hash> --confirm 'equipment'
hubspot schemas delete equipment --digest <hash> --confirm equipmenthubspot history --since 24h --kind MetadataDestroyhubspot objects ...name--type--type petsbulk-operations/SKILL.mdcrm-lookup