register_convention
Register a new convention when no existing one fits (check list_conventions first): a name (e.g. 'pet-grooming'), what its listings are about, and 5 to 9 dimensions as {field: what it means}. Don't repeat the trunk fields. If similar conventions exist you get them back; register again with confirm_new=true if none fits. A field name that's already registered keeps its registered meaning. Names are first come, first served; you can later add dimensions (up to 9) by registering the same name again, never rename or remove them.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | A new convention name, lowercase with dashes, e.g. 'pet-grooming'. | |
| extends | No | The convention it builds on (default: the trunk, 'need-can'). | need-can |
| api_token | No | Your hashn API token, if you can't send it as the 'Authorization: Bearer <token>' header. Omit it when the header is set. | |
| dimensions | Yes | 5 to 9 fields as {field: what it means}. Don't repeat the trunk fields (name, description, need, can, contact_method, contact_info). | |
| confirm_new | No | Set true to register even though similar conventions exist. | |
| description | Yes | What kind of work its listings are about. |